»õ ÆÄÀÏ |
| | |
| | |  |
| | | // ReveiwHistory.cpp: ìì© íë¡ê·¸ë¨ì ëí í´ëì¤ ëìì ì ìí©ëë¤. |
| | | // |
| | | |
| | | #include "stdafx.h" |
| | | #include "ReveiwHistory.h" |
| | | #include "ReveiwHistoryDlg.h" |
| | | |
| | | #ifdef _DEBUG |
| | | #define new DEBUG_NEW |
| | | #endif |
| | | |
| | | |
| | | // CReveiwHistoryApp |
| | | |
| | | BEGIN_MESSAGE_MAP(CReveiwHistoryApp, CWinApp) |
| | | ON_COMMAND(ID_HELP, &CWinApp::OnHelp) |
| | | END_MESSAGE_MAP() |
| | | |
| | | |
| | | // CReveiwHistoryApp ìì± |
| | | |
| | | CReveiwHistoryApp::CReveiwHistoryApp() |
| | | { |
| | | // ë¤ì ìì ê´ë¦¬ì ì§ì |
| | | m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART; |
| | | |
| | | // TODO: ì¬ê¸°ì ìì± ì½ë를 ì¶ê°í©ëë¤. |
| | | // InitInstanceì 모ë ì¤ìí ì´ê¸°í ìì
ì ë°°ì¹í©ëë¤. |
| | | } |
| | | |
| | | |
| | | // ì ì¼í CReveiwHistoryApp ê°ì²´ì
ëë¤. |
| | | |
| | | CReveiwHistoryApp theApp; |
| | | |
| | | |
| | | // CReveiwHistoryApp ì´ê¸°í |
| | | |
| | | BOOL CReveiwHistoryApp::InitInstance() |
| | | { |
| | | // ìì© íë¡ê·¸ë¨ 매ëíì¤í¸ê° ComCtl32.dll ë²ì 6 ì´ìì ì¬ì©íì¬ ë¹ì£¼ì¼ ì¤íì¼ì |
| | | // ì¬ì©íëë¡ ì§ì íë ê²½ì°, Windows XP ììì ë°ëì InitCommonControlsEx()ê° íìí©ëë¤. |
| | | // InitCommonControlsEx()를 ì¬ì©íì§ ìì¼ë©´ ì°½ì ë§ë¤ ì ììµëë¤. |
| | | INITCOMMONCONTROLSEX InitCtrls; |
| | | InitCtrls.dwSize = sizeof(InitCtrls); |
| | | // ìì© íë¡ê·¸ë¨ìì ì¬ì©í 모ë ê³µì© ì»¨í¸ë¡¤ í´ëì¤ë¥¼ í¬í¨íëë¡ |
| | | // ì´ í목ì ì¤ì íììì¤. |
| | | InitCtrls.dwICC = ICC_WIN95_CLASSES; |
| | | InitCommonControlsEx(&InitCtrls); |
| | | |
| | | CWinApp::InitInstance(); |
| | | |
| | | |
| | | AfxEnableControlContainer(); |
| | | |
| | | // ëí ììì ì
¸ í¸ë¦¬ ë·° ëë |
| | | // ì
¸ ëª©ë¡ ë·° 컨í¸ë¡¤ì´ í¬í¨ëì´ ìë ê²½ì° ì
¸ ê´ë¦¬ì를 ë§ëëë¤. |
| | | CShellManager *pShellManager = new CShellManager; |
| | | |
| | | // MFC 컨í¸ë¡¤ì í
ë§ë¥¼ ì¬ì©í기 ìí´ "Windows ìí" ë¹ì£¼ì¼ ê´ë¦¬ì íì±í |
| | | CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows)); |
| | | |
| | | // íì¤ ì´ê¸°í |
| | | // ì´ë¤ 기ë¥ì ì¬ì©íì§ ìê³ ìµì¢
ì¤í íì¼ì í¬ê¸°ë¥¼ ì¤ì´ë ¤ë©´ |
| | | // ìëìì íì ìë í¹ì ì´ê¸°í |
| | | // 루í´ì ì ê±°í´ì¼ í©ëë¤. |
| | | // í´ë¹ ì¤ì ì´ ì ì¥ë ë ì§ì¤í¸ë¦¬ í¤ë¥¼ ë³ê²½íììì¤. |
| | | // TODO: ì´ ë¬¸ìì´ì íì¬ ëë ì¡°ì§ì ì´ë¦ê³¼ ê°ì |
| | | // ì ì í ë´ì©ì¼ë¡ ìì í´ì¼ í©ëë¤. |
| | | SetRegistryKey(_T("ë¡ì»¬ ìì© íë¡ê·¸ë¨ ë§ë²ì¬ìì ìì±ë ìì© íë¡ê·¸ë¨")); |
| | | |
| | | CReveiwHistoryDlg dlg; |
| | | m_pMainWnd = &dlg; |
| | | INT_PTR nResponse = dlg.DoModal(); |
| | | if (nResponse == IDOK) |
| | | { |
| | | // TODO: ì¬ê¸°ì [íì¸]ì í´ë¦íì¬ ëí ììê° ìì´ì§ ë ì²ë¦¬í |
| | | // ì½ë를 ë°°ì¹í©ëë¤. |
| | | } |
| | | else if (nResponse == IDCANCEL) |
| | | { |
| | | // TODO: ì¬ê¸°ì [ì·¨ì]를 í´ë¦íì¬ ëí ììê° ìì´ì§ ë ì²ë¦¬í |
| | | // ì½ë를 ë°°ì¹í©ëë¤. |
| | | } |
| | | else if (nResponse == -1) |
| | | { |
| | | TRACE(traceAppMsg, 0, "ê²½ê³ : ëí ìì를 ë§ë¤ì§ 못íì¼ë¯ë¡ ìì© íë¡ê·¸ë¨ì´ ìê¸°ì¹ ìê² ì¢
ë£ë©ëë¤.\n"); |
| | | TRACE(traceAppMsg, 0, "ê²½ê³ : ëí ìììì MFC 컨í¸ë¡¤ì ì¬ì©íë ê²½ì° #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS를 ìíí ì ììµëë¤.\n"); |
| | | } |
| | | |
| | | // ììì ë§ë ì
¸ ê´ë¦¬ì를 ìì í©ëë¤. |
| | | if (pShellManager != nullptr) |
| | | { |
| | | delete pShellManager; |
| | | } |
| | | |
| | | #if !defined(_AFXDLL) && !defined(_AFX_NO_MFC_CONTROLS_IN_DIALOGS) |
| | | ControlBarCleanUp(); |
| | | #endif |
| | | |
| | | // ëí ììê° ë«íì¼ë¯ë¡ ìì© íë¡ê·¸ë¨ì ë©ìì§ íí를 ììíì§ ìê³ ìì© íë¡ê·¸ë¨ì ëë¼ ì ìëë¡ FALSE를 |
| | | // ë°íí©ëë¤. |
| | | return FALSE; |
| | | } |
| | | |