#pragma once #include "common.h" class T2MsgWindow : public CFrameWnd { DECLARE_DYNCREATE(T2MsgWindow) DECLARE_MESSAGE_MAP() public: T2MsgWindow(); virtual ~T2MsgWindow(); void SetDocument(T2TowerDoc *inDoc); virtual BOOL PreTranslateMessage(MSG *pMsg); protected: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg BOOL OnQueryNewPalette(); afx_msg BOOL OnEraseBkgnd(CDC *pDC); virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT *pResult); afx_msg void OnClose(); protected: CString mWndClass; T2MWControl *mClockControl; T2MWControl *mCalendarControl; T2MWControl *mFundsControl; T2MWControl *mPopulationControl; T2MWControl *mMessageControl; T2DlgItemAnimation *mGradeControl; T2TowerDoc *mDocument; T2WorldDef *mWorldDef; CToolTipCtrl mToolTip; BOOL mIsSetUp; };