/[projects]/SodukuSolver/test1/test1.cpp
ViewVC logotype

Annotation of /SodukuSolver/test1/test1.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 226 - (hide annotations) (download)
Mon Jun 15 11:06:35 2009 UTC (14 years, 11 months ago) by torben
File size: 1845 byte(s)


1 torben 226 // test1.cpp : Defines the class behaviors for the application.
2     //
3    
4     #include "stdafx.h"
5     #include "test1.h"
6     #include "test1Dlg.h"
7    
8     #ifdef _DEBUG
9     #define new DEBUG_NEW
10     #endif
11    
12    
13     // Ctest1App
14    
15     BEGIN_MESSAGE_MAP(Ctest1App, CWinApp)
16     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
17     END_MESSAGE_MAP()
18    
19    
20     // Ctest1App construction
21    
22     Ctest1App::Ctest1App()
23     {
24     // TODO: add construction code here,
25     // Place all significant initialization in InitInstance
26     }
27    
28    
29     // The one and only Ctest1App object
30    
31     Ctest1App theApp;
32    
33    
34     // Ctest1App initialization
35    
36     BOOL Ctest1App::InitInstance()
37     {
38     // InitCommonControls() is required on Windows XP if an application
39     // manifest specifies use of ComCtl32.dll version 6 or later to enable
40     // visual styles. Otherwise, any window creation will fail.
41     InitCommonControls();
42    
43     CWinApp::InitInstance();
44    
45     AfxEnableControlContainer();
46    
47     // Standard initialization
48     // If you are not using these features and wish to reduce the size
49     // of your final executable, you should remove from the following
50     // the specific initialization routines you do not need
51     // Change the registry key under which our settings are stored
52     // TODO: You should modify this string to be something appropriate
53     // such as the name of your company or organization
54     SetRegistryKey(_T("Local AppWizard-Generated Applications"));
55    
56     Ctest1Dlg dlg;
57     m_pMainWnd = &dlg;
58     INT_PTR nResponse = dlg.DoModal();
59     if (nResponse == IDOK)
60     {
61     // TODO: Place code here to handle when the dialog is
62     // dismissed with OK
63     }
64     else if (nResponse == IDCANCEL)
65     {
66     // TODO: Place code here to handle when the dialog is
67     // dismissed with Cancel
68     }
69    
70     // Since the dialog has been closed, return FALSE so that we exit the
71     // application, rather than start the application's message pump.
72     return FALSE;
73     }

  ViewVC Help
Powered by ViewVC 1.1.20