#include "stdafx.h" #include #include #ifdef _DEBUG #define new DEBUG_NEW #endif BEGIN_MESSAGE_MAP(CClientDialogApp, CWinApp) #ifdef VERSION_VS60 ON_COMMAND(ID_HELP, CWinApp::OnHelp) #else ON_COMMAND(ID_HELP, &CWinApp::OnHelp) #endif END_MESSAGE_MAP() CClientDialogApp::CClientDialogApp() {} CClientDialogApp theApp; BOOL CClientDialogApp::InitInstance() { INITCOMMONCONTROLSEX InitCtrls; InitCtrls.dwSize = sizeof(InitCtrls); InitCtrls.dwICC = ICC_WIN95_CLASSES; InitCommonControlsEx(&InitCtrls); CWinApp::InitInstance(); AfxEnableControlContainer(); SetRegistryKey(_T("·ÎÄà ÀÀ¿ë ÇÁ·Î±×·¥ ¸¶¹ý»ç¿¡¼­ »ý¼ºµÈ ÀÀ¿ë ÇÁ·Î±×·¥")); CClientDialogDlg dlg; m_pMainWnd = &dlg; INT_PTR nResponse = dlg.DoModal(); if (nResponse == IDOK) { } else if (nResponse == IDCANCEL) { } return FALSE; }