// ChildView.h : interface of the CChildView class // #pragma once // CChildView window class CChildView : public CWnd { // Construction public: CChildView(); // Attributes public: // Operations public: // Overrides protected: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); // Implementation public: virtual ~CChildView(); // Generated message map functions protected: afx_msg void OnPaint(); DECLARE_MESSAGE_MAP() public: afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); private: int m_DisplayX; int m_DisplayY; CStatic* m_pCStatic; int m_MouseX; int m_MouseY; int m_TriangleX; int m_TriangleY; public: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); };