/[H6]/h6-udlånssystem.cpp
ViewVC logotype

Annotation of /h6-udlånssystem.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations) (download)
Wed Aug 30 06:32:35 2006 UTC (17 years, 8 months ago) by torben
File size: 1955 byte(s)
Initial import
1 torben 1 // h6-udlånssystem.cpp : Defines the class behaviors for the application.
2     //
3    
4     #include "stdafx.h"
5     #include "h6-udlånssystem.h"
6     #include "h6-udlånssystemDlg.h"
7    
8     #ifdef _DEBUG
9     #define new DEBUG_NEW
10     #endif
11    
12    
13     // Ch6udlnssystemApp
14    
15     BEGIN_MESSAGE_MAP(Ch6udlnssystemApp, CWinApp)
16     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
17     END_MESSAGE_MAP()
18    
19    
20     // Ch6udlnssystemApp construction
21    
22     Ch6udlnssystemApp::Ch6udlnssystemApp()
23     {
24     // TODO: add construction code here,
25     // Place all significant initialization in InitInstance
26     }
27    
28    
29     // The one and only Ch6udlnssystemApp object
30    
31     Ch6udlnssystemApp theApp;
32    
33    
34     // Ch6udlnssystemApp initialization
35    
36     BOOL Ch6udlnssystemApp::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     Ch6udlnssystemDlg 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