闪一下就正常退出,不处理消息循环
BOOL CccApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControls()。否则,将无法创建窗口。
InitCommonControls();
CWinApp::InitInstance();
AfxEnableControlContainer(); CShow csh;
m_pMainWnd = &csh;
m_pMainWnd->CreateEx(WS_EX_WINDOWEDGE,"SHOW_CLASS","tt",WS_VISIBLE | WS_OVERLAPPED,CRect(50,50,800,500),NULL,NULL);
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow(); return TRUE;
}
谁告诉我怎么回事