www.pudn.com > qiyehetongguanli.rar > htglxt.cpp


// htglxt.cpp : Defines the class behaviors for the application. 
// 
 
#include "stdafx.h" 
#include "htglxt.h" 
#include "DMain.h" 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CHtglxtApp 
 
BEGIN_MESSAGE_MAP(CHtglxtApp, CWinApp) 
	//{{AFX_MSG_MAP(CHtglxtApp) 
	//}}AFX_MSG_MAP 
	// Standard file based document commands 
	ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) 
	ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) 
	// Standard print setup command 
	ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup) 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CHtglxtApp construction 
 
CHtglxtApp::CHtglxtApp() 
{ 
	// TODO: add construction code here, 
	// Place all significant initialization in InitInstance 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// The one and only CHtglxtApp object 
 
CHtglxtApp theApp; 
///////////////////////////////////////////////////////////////////////////// 
// CHtglxtApp initialization 
 
BOOL CHtglxtApp::InitInstance() 
{ 
	AfxEnableControlContainer(); 
 
#ifdef _AFXDLL 
	Enable3dControls();			// Call this when using MFC in a shared DLL 
#else 
	Enable3dControlsStatic();	// Call this when linking to MFC statically 
#endif 
	SetRegistryKey(_T("Local AppWizard-Generated Applications")); 
	LoadStdProfileSettings();  // Load standard INI file options (including MRU) 
	CDMain dlg; 
	dlg.DoModal(); 
	return TRUE; 
} 
///////////////////////////////////////////////////////////////////////////// 
// CHtglxtApp message handlers 
 
int CHtglxtApp::ExitInstance()  
{ 
	return CWinApp::ExitInstance(); 
}