Back to index

lightning-sunbird  0.9+nobinonly
RegMozCtl.cpp
Go to the documentation of this file.
00001 // RegMozCtl.cpp : Defines the class behaviors for the application.
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "RegMozCtl.h"
00006 #include "RegMozCtlDlg.h"
00007 
00008 #ifdef _DEBUG
00009 #define new DEBUG_NEW
00010 #undef THIS_FILE
00011 static char THIS_FILE[] = __FILE__;
00012 #endif
00013 
00015 // CRegMozCtlApp
00016 
00017 BEGIN_MESSAGE_MAP(CRegMozCtlApp, CWinApp)
00018        //{{AFX_MSG_MAP(CRegMozCtlApp)
00019               // NOTE - the ClassWizard will add and remove mapping macros here.
00020               //    DO NOT EDIT what you see in these blocks of generated code!
00021        //}}AFX_MSG
00022        ON_COMMAND(ID_HELP, CWinApp::OnHelp)
00023 END_MESSAGE_MAP()
00024 
00026 // CRegMozCtlApp construction
00027 
00028 CRegMozCtlApp::CRegMozCtlApp()
00029 {
00030        // TODO: add construction code here,
00031        // Place all significant initialization in InitInstance
00032 }
00033 
00035 // The one and only CRegMozCtlApp object
00036 
00037 CRegMozCtlApp theApp;
00038 
00040 // CRegMozCtlApp initialization
00041 
00042 BOOL CRegMozCtlApp::InitInstance()
00043 {
00044        AfxEnableControlContainer();
00045 
00046        // Standard initialization
00047        // If you are not using these features and wish to reduce the size
00048        //  of your final executable, you should remove from the following
00049        //  the specific initialization routines you do not need.
00050 
00051 #ifdef _AFXDLL
00052        Enable3dControls();                // Call this when using MFC in a shared DLL
00053 #else
00054        Enable3dControlsStatic();   // Call this when linking to MFC statically
00055 #endif
00056 
00057        CRegMozCtlDlg dlg;
00058        m_pMainWnd = &dlg;
00059        int nResponse = dlg.DoModal();
00060        if (nResponse == IDOK)
00061        {
00062               // TODO: Place code here to handle when the dialog is
00063               //  dismissed with OK
00064        }
00065        else if (nResponse == IDCANCEL)
00066        {
00067               // TODO: Place code here to handle when the dialog is
00068               //  dismissed with Cancel
00069        }
00070 
00071        // Since the dialog has been closed, return FALSE so that we exit the
00072        //  application, rather than start the application's message pump.
00073        return FALSE;
00074 }