[RsWitch-cvs] CVS: rswitch RsWitch.cpp,1.1.1.1,1.2
Status: Alpha
Brought to you by:
bcrochet
From: Brad P. C. <bcr...@us...> - 2000-12-05 05:44:08
|
Update of /cvsroot/rswitch/rswitch In directory slayer.i.sourceforge.net:/tmp/cvs-serv6494 Modified Files: RsWitch.cpp Log Message: Reformatting. Index: RsWitch.cpp =================================================================== RCS file: /cvsroot/rswitch/rswitch/RsWitch.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** RsWitch.cpp 2000/11/01 15:10:18 1.1.1.1 --- RsWitch.cpp 2000/12/05 05:44:06 1.2 *************** *** 19,22 **** --- 19,25 ---- // $Log$ + // Revision 1.2 2000/12/05 05:44:06 bcrochet + // Reformatting. + // // Revision 1.1.1.1 2000/11/01 15:10:18 bcrochet // Initial revision and import *************** *** 41,49 **** BEGIN_MESSAGE_MAP(CRsWitchApp, CWinApp) ! //{{AFX_MSG_MAP(CRsWitchApp) ! ON_COMMAND(ID_APP_ABOUT, OnAppAbout) ! // NOTE - the ClassWizard will add and remove mapping macros here. ! // DO NOT EDIT what you see in these blocks of generated code! ! //}}AFX_MSG_MAP END_MESSAGE_MAP() --- 44,52 ---- BEGIN_MESSAGE_MAP(CRsWitchApp, CWinApp) ! //{{AFX_MSG_MAP(CRsWitchApp) ! ON_COMMAND(ID_APP_ABOUT, OnAppAbout) ! // NOTE - the ClassWizard will add and remove mapping macros here. ! // DO NOT EDIT what you see in these blocks of generated code! ! //}}AFX_MSG_MAP END_MESSAGE_MAP() *************** *** 53,58 **** CRsWitchApp::CRsWitchApp() { ! // TODO: add construction code here, ! // Place all significant initialization in InitInstance } --- 56,61 ---- CRsWitchApp::CRsWitchApp() { ! // TODO: add construction code here, ! // Place all significant initialization in InitInstance } *************** *** 67,104 **** BOOL CRsWitchApp::InitInstance() { ! // Standard initialization ! // If you are not using these features and wish to reduce the size ! // of your final executable, you should remove from the following ! // the specific initialization routines you do not need. #ifdef _AFXDLL ! Enable3dControls(); // Call this when using MFC in a shared DLL #else ! Enable3dControlsStatic(); // Call this when linking to MFC statically #endif - - // Change the registry key under which our settings are stored. - // TODO: You should modify this string to be something appropriate - // such as the name of your company or organization. - SetRegistryKey(IDS_REGISTRY_KEY); - // To create the main window, this code creates a new frame window - // object and then sets it as the application's main window object. ! CMainFrame* pFrame = new CMainFrame; ! m_pMainWnd = pFrame; ! // create and load the frame with its resources ! pFrame->LoadFrame(IDR_MAINFRAME, ! WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, ! NULL); ! // The one and only window has been initialized, so show and update it. pFrame->ShowWindow(SW_HIDE); pFrame->UpdateWindow(); ! return TRUE; } --- 70,107 ---- BOOL CRsWitchApp::InitInstance() { ! // Standard initialization ! // If you are not using these features and wish to reduce the size ! // of your final executable, you should remove from the following ! // the specific initialization routines you do not need. #ifdef _AFXDLL ! Enable3dControls(); // Call this when using MFC in a shared DLL #else ! Enable3dControlsStatic(); // Call this when linking to MFC statically #endif + // Change the registry key under which our settings are stored. + // TODO: You should modify this string to be something appropriate + // such as the name of your company or organization. + SetRegistryKey(IDS_REGISTRY_KEY); ! // To create the main window, this code creates a new frame window ! // object and then sets it as the application's main window object. ! CMainFrame* pFrame = new CMainFrame; ! m_pMainWnd = pFrame; ! // create and load the frame with its resources ! ! pFrame->LoadFrame(IDR_MAINFRAME, ! WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, ! NULL); ! // The one and only window has been initialized, so show and update it. pFrame->ShowWindow(SW_HIDE); pFrame->UpdateWindow(); ! return TRUE; } *************** *** 116,157 **** { public: ! CAboutDlg(); // Dialog Data ! //{{AFX_DATA(CAboutDlg) ! enum { IDD = IDD_ABOUTBOX }; ! //}}AFX_DATA ! ! // ClassWizard generated virtual function overrides ! //{{AFX_VIRTUAL(CAboutDlg) ! protected: ! virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support ! //}}AFX_VIRTUAL // Implementation protected: ! //{{AFX_MSG(CAboutDlg) ! // No message handlers ! //}}AFX_MSG ! DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { ! //{{AFX_DATA_INIT(CAboutDlg) ! //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { ! CDialog::DoDataExchange(pDX); ! //{{AFX_DATA_MAP(CAboutDlg) ! //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) ! //{{AFX_MSG_MAP(CAboutDlg) ! // No message handlers ! //}}AFX_MSG_MAP END_MESSAGE_MAP() --- 119,160 ---- { public: ! CAboutDlg(); // Dialog Data ! //{{AFX_DATA(CAboutDlg) ! enum { IDD = IDD_ABOUTBOX }; ! //}}AFX_DATA + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CAboutDlg) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + // Implementation protected: ! //{{AFX_MSG(CAboutDlg) ! // No message handlers ! //}}AFX_MSG ! DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { ! //{{AFX_DATA_INIT(CAboutDlg) ! //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { ! CDialog::DoDataExchange(pDX); ! //{{AFX_DATA_MAP(CAboutDlg) ! //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) ! //{{AFX_MSG_MAP(CAboutDlg) ! // No message handlers ! //}}AFX_MSG_MAP END_MESSAGE_MAP() *************** *** 159,164 **** void CRsWitchApp::OnAppAbout() { ! CAboutDlg aboutDlg; ! aboutDlg.DoModal(); } --- 162,167 ---- void CRsWitchApp::OnAppAbout() { ! CAboutDlg aboutDlg; ! aboutDlg.DoModal(); } *************** *** 169,172 **** int CRsWitchApp::ExitInstance() { ! return CWinApp::ExitInstance(); } --- 172,175 ---- int CRsWitchApp::ExitInstance() { ! return CWinApp::ExitInstance(); } |