实例化应用程序的对象
CTestApp theApp
CTestApp的构造函数
CTestApp::CTestApp()
{
}
执行WinMain函数
_tWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)
{
//call shared/exported WinMain
return AfxWinMain(hInstance,hPrevInstance,lpCmdLine,nCmdShow);
}
跳到AfxWinMain中执行InitInstance()
然后注册窗口类
AfxEndDeferRegisterClass