MainFrm.h 951 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. #pragma once
  4. #include "ChildView.h"
  5. class CMainFrame : public CFrameWnd
  6. {
  7. public:
  8. CMainFrame();
  9. protected:
  10. DECLARE_DYNAMIC(CMainFrame)
  11. // Attributes
  12. public:
  13. // Operations
  14. public:
  15. // Overrides
  16. public:
  17. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  18. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  19. // Implementation
  20. public:
  21. virtual ~CMainFrame();
  22. #ifdef _DEBUG
  23. virtual void AssertValid() const;
  24. virtual void Dump(CDumpContext& dc) const;
  25. #endif
  26. private:
  27. CChildView m_wndView;
  28. Keyboard m_kb;
  29. HWND m_hForground;
  30. // Generated message map functions
  31. protected:
  32. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  33. afx_msg void OnSetFocus(CWnd *pOldWnd);
  34. DECLARE_MESSAGE_MAP()
  35. public:
  36. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  37. afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
  38. };