38{
39
40
41
42 INITCOMMONCONTROLSEX InitCtrls;
43 InitCtrls.dwSize = sizeof(InitCtrls);
44
45
46 InitCtrls.dwICC = ICC_WIN95_CLASSES;
47 InitCommonControlsEx(&InitCtrls);
48
49 CWinApp::InitInstance();
50
51
52 MainDialog dlg(this);
53 m_pMainWnd = &dlg;
54 m_pDlg = &dlg;
55
56 INT_PTR nResponse = dlg.DoModal();
57 if (nResponse == IDOK)
58 {
59 }
60 else if (nResponse == IDCANCEL)
61 {
62 }
63
64 return FALSE;
65}