BattViewer.cpp

Go to the documentation of this file.
00001 //
00002 // Copyright 2003 Sony Corporation 
00003 //
00004 // Permission to use, copy, modify, and redistribute this software for
00005 // non-commercial use is hereby granted.
00006 //
00007 // This software is provided "as is" without warranty of any kind,
00008 // either expressed or implied, including but not limited to the
00009 // implied warranties of fitness for a particular purpose.
00010 //
00011 // BattViewer.cpp : Defines the class behaviors for the application.
00012 //
00013 
00014 #include "stdafx.h"
00015 #include "BattViewer.h"
00016 #include "BattViewerDlg.h"
00017 
00018 #ifdef _DEBUG
00019 #define new DEBUG_NEW
00020 #undef THIS_FILE
00021 static char THIS_FILE[] = __FILE__;
00022 #endif
00023 
00025 // CBattViewerApp
00026 
00027 BEGIN_MESSAGE_MAP(CBattViewerApp, CWinApp)
00028         //{{AFX_MSG_MAP(CBattViewerApp)
00029                 // NOTE - the ClassWizard will add and remove mapping macros here.
00030                 //    DO NOT EDIT what you see in these blocks of generated code!
00031         //}}AFX_MSG
00032         ON_COMMAND(ID_HELP, CWinApp::OnHelp)
00033 END_MESSAGE_MAP()
00034 
00036 // CBattViewerApp construction
00037 
00038 CBattViewerApp::CBattViewerApp()
00039 {
00040         // TODO: add construction code here,
00041         // Place all significant initialization in InitInstance
00042 }
00043 
00045 // The one and only CBattViewerApp object
00046 
00047 CBattViewerApp theApp;
00048 
00050 // CBattViewerApp initialization
00051 
00052 BOOL CBattViewerApp::InitInstance()
00053 {
00054         // Standard initialization
00055         // If you are not using these features and wish to reduce the size
00056         //  of your final executable, you should remove from the following
00057         //  the specific initialization routines you do not need.
00058 
00059 #ifdef _AFXDLL
00060         Enable3dControls();                     // Call this when using MFC in a shared DLL
00061 #else
00062         Enable3dControlsStatic();       // Call this when linking to MFC statically
00063 #endif
00064 
00065         CBattViewerDlg dlg;
00066         m_pMainWnd = &dlg;
00067         int nResponse = dlg.DoModal();
00068         if (nResponse == IDOK)
00069         {
00070                 // TODO: Place code here to handle when the dialog is
00071                 //  dismissed with OK
00072         }
00073         else if (nResponse == IDCANCEL)
00074         {
00075                 // TODO: Place code here to handle when the dialog is
00076                 //  dismissed with Cancel
00077         }
00078         // Since the dialog has been closed, return FALSE so that we exit the
00079         //  application, rather than start the application's message pump.
00080         return FALSE;
00081 }

Generated on Sun Dec 2 23:04:28 2007 for openSDK by  doxygen 1.3.9.1