#include "stdafx.h" #include "01.h" App myApp; BOOL App::InitInstance() { m_pMainWnd = new MainWindow; m_pMainWnd->ShowWindow(m_nCmdShow); m_pMainWnd->UpdateWindow(); return TRUE; } BEGIN_MESSAGE_MAP(MainWindow, CFrameWnd) //this is not a casting ON_WM_CREATE() ON_WM_PAINT() END_MESSAGE_MAP() MainWindow::MainWindow() { Create(NULL, _T("window")); } void MainWindow::OnCreate() { } void MainWindow::OnPaint() { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)