Files
TestEGr/TestEGr.cpp
T
2014-01-31 14:52:38 +00:00

76 lines
2.4 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2013-2014
//----------------------------------------------------------------------------
// File : TestEGr.cpp Data : 29.01.14 Versione : 1.5a1
// Contenuto : Implementazione della classe applicazione test grafica.
//
//
//
// Modifiche : 29.01.14 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "TestEGr.h"
#include "TestEGrDlg.h"
//----------------------------------------------------------------------------
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//----------------------------------------------------------------------------
// The one and only CTestEGrApp object
CTestEGrApp theApp ;
//----------------------------------------------------------------------------
BEGIN_MESSAGE_MAP( CTestEGrApp, CWinApp)
ON_COMMAND( ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()
//----------------------------------------------------------------------------
CTestEGrApp::CTestEGrApp( void)
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
//----------------------------------------------------------------------------
BOOL
CTestEGrApp::InitInstance( void)
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls ;
InitCtrls.dwSize = sizeof( InitCtrls) ;
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES ;
InitCommonControlsEx( &InitCtrls) ;
CWinApp::InitInstance() ;
AfxEnableControlContainer() ;
CTestEGrDlg dlg ;
m_pMainWnd = &dlg ;
INT_PTR nResponse = dlg.DoModal() ;
if ( nResponse == IDOK) {
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if ( nResponse == IDCANCEL) {
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE ;
}