// Dicom.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "DicomApp.h" #include "DicomDlg.h" ///////////////////////////////////////////////////////////////////////////// // CDicomApp BEGIN_MESSAGE_MAP(CDicomApp, CWinApp) //{{AFX_MSG_MAP(CDicomApp) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDicomApp construction CDicomApp::CDicomApp() { } ///////////////////////////////////////////////////////////////////////////// // The one and only CDicomApp object CDicomApp theApp; ///////////////////////////////////////////////////////////////////////////// // CDicomApp initialization BOOL CDicomApp::InitInstance() { #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif CDicomDlg dlg; m_pMainWnd = &dlg; dlg.SetLoadFile(m_lpCmdLine); dlg.DoModal(); return FALSE; }