#include <afxwin.h>
class CMyWinApp : public CWinApp
{
public:
BOOL InitInstance()
{
CFrameWnd *pFrameWnd = new CFrameWnd;
m_pMainWnd = pFrameWnd;
pFrameWnd->Create(0, TEXT("Hello")); // calls ::RegisterClass & ::CreateWindow
pFrameWnd->ShowWindow(SW_SHOW); // calls ::ShowWindow
pFrameWnd->UpdateWindow(); // calls ::UpdateWindow
return TRUE;
}
};
CMyWinApp theApp;
class CMyWinApp : public CWinApp
{
public:
BOOL InitInstance()
{
CFrameWnd *pFrameWnd = new CFrameWnd;
m_pMainWnd = pFrameWnd;
pFrameWnd->Create(0, TEXT("Hello")); // calls ::RegisterClass & ::CreateWindow
pFrameWnd->ShowWindow(SW_SHOW); // calls ::ShowWindow
pFrameWnd->UpdateWindow(); // calls ::UpdateWindow
return TRUE;
}
};
CMyWinApp theApp;
class CFrameWnd : public CWnd
CFrameWnd::Create > CWnd::CreateEx >
- CFrameWnd::PreCreateWindow > AfxDeferRegisterClass > _AfxRegisterWithIcon > AfxRegisterClass > ::RegisterClass
- ::CreateWindowEx
[MFC] Simplified MFC Structure
'Code > C C++' 카테고리의 다른 글
| [C++] vector shared_ptr sample (0) | 2010.05.15 |
|---|---|
| [MFC] Simplified MFC Structure (0) | 2010.04.24 |
| [C++] Regular Expressions Class: regex (0) | 2010.04.18 |
| [C++/CLI] #pragma managed, #pragma unmanaged (0) | 2009.05.09 |
| [C++/CLI] #pragma managed, #pragma unmanaged, Windows API (0) | 2009.05.09 |