StephaneLenclud@8: // DisplayTest.cpp : Defines the class behaviors for the application.
StephaneLenclud@8: //
StephaneLenclud@8: 
StephaneLenclud@8: #include "stdafx.h"
StephaneLenclud@8: #include "DisplayTest.h"
StephaneLenclud@8: #include "DisplayTestDlg.h"
StephaneLenclud@8: 
StephaneLenclud@8: #ifdef _DEBUG
StephaneLenclud@8: #define new DEBUG_NEW
StephaneLenclud@8: #endif
StephaneLenclud@8: 
StephaneLenclud@8: 
StephaneLenclud@8: // CDisplayTestApp
StephaneLenclud@8: 
StephaneLenclud@8: BEGIN_MESSAGE_MAP(CDisplayTestApp, CWinApp)
StephaneLenclud@8: 	ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
StephaneLenclud@8: END_MESSAGE_MAP()
StephaneLenclud@8: 
StephaneLenclud@8: 
StephaneLenclud@8: // CDisplayTestApp construction
StephaneLenclud@8: 
StephaneLenclud@8: CDisplayTestApp::CDisplayTestApp()
StephaneLenclud@8: {
StephaneLenclud@8: 	// TODO: add construction code here,
StephaneLenclud@8: 	// Place all significant initialization in InitInstance
StephaneLenclud@8: }
StephaneLenclud@8: 
StephaneLenclud@8: 
StephaneLenclud@8: // The one and only CDisplayTestApp object
StephaneLenclud@8: 
StephaneLenclud@8: CDisplayTestApp theApp;
StephaneLenclud@8: 
StephaneLenclud@8: 
StephaneLenclud@8: // CDisplayTestApp initialization
StephaneLenclud@8: 
StephaneLenclud@8: BOOL CDisplayTestApp::InitInstance()
StephaneLenclud@8: {
StephaneLenclud@8: 	// InitCommonControlsEx() is required on Windows XP if an application
StephaneLenclud@8: 	// manifest specifies use of ComCtl32.dll version 6 or later to enable
StephaneLenclud@8: 	// visual styles.  Otherwise, any window creation will fail.
StephaneLenclud@8: 	INITCOMMONCONTROLSEX InitCtrls;
StephaneLenclud@8: 	InitCtrls.dwSize = sizeof(InitCtrls);
StephaneLenclud@8: 	// Set this to include all the common control classes you want to use
StephaneLenclud@8: 	// in your application.
StephaneLenclud@8: 	InitCtrls.dwICC = ICC_WIN95_CLASSES;
StephaneLenclud@8: 	InitCommonControlsEx(&InitCtrls);
StephaneLenclud@8: 
StephaneLenclud@8: 	CWinApp::InitInstance();
StephaneLenclud@8: 
StephaneLenclud@8: 	AfxEnableControlContainer();
StephaneLenclud@8: 
StephaneLenclud@8: 	// Standard initialization
StephaneLenclud@8: 	// If you are not using these features and wish to reduce the size
StephaneLenclud@8: 	// of your final executable, you should remove from the following
StephaneLenclud@8: 	// the specific initialization routines you do not need
StephaneLenclud@8: 	// Change the registry key under which our settings are stored
StephaneLenclud@8: 	// TODO: You should modify this string to be something appropriate
StephaneLenclud@8: 	// such as the name of your company or organization
StephaneLenclud@8: 	SetRegistryKey(_T("Local AppWizard-Generated Applications"));
StephaneLenclud@8: 
StephaneLenclud@8: 	CDisplayTestDlg dlg;
StephaneLenclud@8: 	m_pMainWnd = &dlg;
StephaneLenclud@8: 	INT_PTR nResponse = dlg.DoModal();
StephaneLenclud@8: 	if (nResponse == IDOK)
StephaneLenclud@8: 	{
StephaneLenclud@8: 		// TODO: Place code here to handle when the dialog is
StephaneLenclud@8: 		//  dismissed with OK
StephaneLenclud@8: 	}
StephaneLenclud@8: 	else if (nResponse == IDCANCEL)
StephaneLenclud@8: 	{
StephaneLenclud@8: 		// TODO: Place code here to handle when the dialog is
StephaneLenclud@8: 		//  dismissed with Cancel
StephaneLenclud@8: 	}
StephaneLenclud@8: 
StephaneLenclud@8: 	// Since the dialog has been closed, return FALSE so that we exit the
StephaneLenclud@8: 	//  application, rather than start the application's message pump.
StephaneLenclud@8: 	return FALSE;
StephaneLenclud@8: }