1 // RegMozCtl.cpp : Defines the class behaviors for the application.
6 #include "RegMozCtlDlg.h"
11 static char THIS_FILE
[] = __FILE__
;
14 /////////////////////////////////////////////////////////////////////////////
17 BEGIN_MESSAGE_MAP(CRegMozCtlApp
, CWinApp
)
18 //{{AFX_MSG_MAP(CRegMozCtlApp)
19 // NOTE - the ClassWizard will add and remove mapping macros here.
20 // DO NOT EDIT what you see in these blocks of generated code!
22 ON_COMMAND(ID_HELP
, CWinApp::OnHelp
)
25 /////////////////////////////////////////////////////////////////////////////
26 // CRegMozCtlApp construction
28 CRegMozCtlApp::CRegMozCtlApp()
30 // TODO: add construction code here,
31 // Place all significant initialization in InitInstance
34 /////////////////////////////////////////////////////////////////////////////
35 // The one and only CRegMozCtlApp object
39 /////////////////////////////////////////////////////////////////////////////
40 // CRegMozCtlApp initialization
42 BOOL
CRegMozCtlApp::InitInstance()
44 AfxEnableControlContainer();
46 // Standard initialization
47 // If you are not using these features and wish to reduce the size
48 // of your final executable, you should remove from the following
49 // the specific initialization routines you do not need.
52 Enable3dControls(); // Call this when using MFC in a shared DLL
54 Enable3dControlsStatic(); // Call this when linking to MFC statically
59 int nResponse
= dlg
.DoModal();
60 if (nResponse
== IDOK
)
62 // TODO: Place code here to handle when the dialog is
65 else if (nResponse
== IDCANCEL
)
67 // TODO: Place code here to handle when the dialog is
68 // dismissed with Cancel
71 // Since the dialog has been closed, return FALSE so that we exit the
72 // application, rather than start the application's message pump.