Professional Documents
Culture Documents
Map Include
Map Include
Map Include
h> class CMainFrame : public CFrameWnd { public: CMainFrame (); protected: DECLARE_MESSAGE_MAP() }; CMainFrame::CMainFrame() { // Create the window's frame Create(NULL, "Windows Application", WS_OVERLAPPEDWINDOW, CRect(120, 100, 700, 480), NULL); } class CExerciseApp: public CWinApp { public: BOOL InitInstance(); }; BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) END_MESSAGE_MAP() BOOL CExerciseApp::InitInstance() { m_pMainWnd = new CMainFrame ; m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); return TRUE; } CExerciseApp theApp;