// toolStatus.h class CtoolStatus_App : public CWinApp { public : virtual BOOL InitInstance(); }; // declare members, message handlers, message map class CMainWindow : public CFrameWnd { public : CMainWindow(); // construct frame CToolBar m_wndToolBar; CStatusBar m_wndStatusBar; COLORREF color; protected: afx_msg void OnPaint (); afx_msg void OnTimer (UINT); afx_msg void OnButton (UINT); afx_msg void OnHelp (UINT); afx_msg void OnUpdatePage(CCmdUI *pCmdUI); DECLARE_MESSAGE_MAP () private: CString makeMsg(CString, UINT); };