00001 // SDKParticules.cpp : Defines the class behaviors for the application. 00002 // 00003 00004 #include "stdafx.h" 00005 #include "SDKParticules.h" 00006 #include "SDKParticulesDlg.h" 00007 00008 #ifdef _DEBUG 00009 #define new DEBUG_NEW 00010 #endif 00011 00012 00013 // CSDKParticulesApp 00014 00015 BEGIN_MESSAGE_MAP(CSDKParticulesApp, CWinApp) 00016 ON_COMMAND(ID_HELP, CWinApp::OnHelp) 00017 END_MESSAGE_MAP() 00018 00019 00020 // CSDKParticulesApp construction 00021 00022 CSDKParticulesApp::CSDKParticulesApp() 00023 { 00024 // TODO: add construction code here, 00025 // Place all significant initialization in InitInstance 00026 } 00027 00028 00029 // The one and only CSDKParticulesApp object 00030 00031 CSDKParticulesApp theApp; 00032 00033 00034 // CSDKParticulesApp initialization 00035 00036 BOOL CSDKParticulesApp::InitInstance() 00037 { 00038 CWinApp::InitInstance(); 00039 00040 AfxEnableControlContainer(); 00041 00042 00043 CSDKParticulesDlg dlg; 00044 m_pMainWnd = &dlg; 00045 INT_PTR nResponse = dlg.DoModal(); 00046 if (nResponse == IDOK) 00047 { 00048 // TODO: Place code here to handle when the dialog is 00049 // dismissed with OK 00050 } 00051 else if (nResponse == IDCANCEL) 00052 { 00053 // TODO: Place code here to handle when the dialog is 00054 // dismissed with Cancel 00055 } 00056 00057 // Since the dialog has been closed, return FALSE so that we exit the 00058 // application, rather than start the application's message pump. 00059 return FALSE; 00060 }