ChildView.h 750 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // ChildView.h : interface of the CChildView class
  2. //
  3. #pragma once
  4. #include "Keyboard.h"
  5. // CChildView window
  6. class CChildView : public CWnd
  7. {
  8. // Construction
  9. public:
  10. CChildView();
  11. bool Bind(Keyboard* pkb);
  12. // Attributes
  13. private:
  14. Keyboard* m_pkb;
  15. // Operations
  16. public:
  17. // Overrides
  18. protected:
  19. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  20. // Implementation
  21. public:
  22. virtual ~CChildView();
  23. // Generated message map functions
  24. protected:
  25. afx_msg void OnPaint();
  26. DECLARE_MESSAGE_MAP()
  27. public:
  28. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  29. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  30. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  31. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  32. };