#pragma once #include "common.h" class T2MWControl : public CWnd { DECLARE_DYNCREATE(T2MWControl) DECLARE_MESSAGE_MAP() public: T2MWControl(); virtual ~T2MWControl(); virtual void Setup(T2TowerDoc *inDoc); virtual void SetData(int data); // type? virtual int GetData() const; // type? protected: afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg BOOL OnQueryNewPalette(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); T2TowerDoc *mDocument; T2WorldDef *mWorldDef; int mData; };