www.pudn.com > 6433624505.rar > Browser.cpp


// Browser.cpp : Defines the class behaviors for the application. 
// 
 
#include "stdafx.h" 
#include "Browser.h" 
#include "BrowserDlg.h" 
#include "resource.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CBrowserApp 
 
BEGIN_MESSAGE_MAP(CBrowserApp, CWinApp) 
	//{{AFX_MSG_MAP(CBrowserApp) 
		// 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() 
 
///////////////////////////////////////////////////////////////////////////// 
// CBrowserApp construction 
 
CBrowserApp::CBrowserApp() 
{ 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// The one and only CBrowserApp object 
 
CBrowserApp theApp; 
 
///////////////////////////////////////////////////////////////////////////// 
// CBrowserApp initialization 
 
BOOL CBrowserApp::InitInstance() 
{ 
	AfxEnableControlContainer(); 
 
#ifdef _AFXDLL 
	Enable3dControls();			// Call this when using MFC in a shared DLL 
#else 
	Enable3dControlsStatic();	// Call this when linking to MFC statically 
#endif 
 
	if(FindWindow(NULL,"Êý¾Ý¿â²é¿´Æ÷")) 
		exit(0); 
 
	CBrowserDlg dlg; 
	m_pMainWnd = &dlg; 
	int nResponse = dlg.DoModal(); 
	if (nResponse == IDOK) 
	{ 
	} 
	else if (nResponse == IDCANCEL) 
	{ 
	} 
	return FALSE; 
}