TestEGr 1.5a1 : Primo commit.
This commit is contained in:
+75
@@ -0,0 +1,75 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// 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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user