-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLens.cpp
More file actions
67 lines (54 loc) · 1.51 KB
/
Lens.cpp
File metadata and controls
67 lines (54 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/************
* MODULE: Lens.cpp
* PROJECT: Lens (a demonstration program for my diploma)
* DESCRIPTION: main class methods
* AUTHORS: Mike Hesser
* BUGS: -
* TO DO: -
*************/
#include "stdafx.h"
#include "Lens.h"
#include "LensDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLensApp
BEGIN_MESSAGE_MAP(CLensApp, CWinApp)
//{{AFX_MSG_MAP(CLensApp)
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLensApp Konstruktion
CLensApp::CLensApp()
{
}
/////////////////////////////////////////////////////////////////////////////
// Das einzige CLensApp-Objekt
CLensApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CLensApp Initialisierung
BOOL CLensApp::InitInstance()
{
// Standardinitialisierung
#ifdef _AFXDLL
Enable3dControls(); // Diese Funktion bei Verwendung von MFC in gemeinsam genutzten DLLs aufrufen
#else
Enable3dControlsStatic(); // Diese Funktion bei statischen MFC-Anbindungen aufrufen
#endif
CLensDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
// Da das Dialogfeld geschlossen wurde, FALSE zurückliefern, so dass wir die
// Anwendung verlassen, anstatt das Nachrichtensystem der Anwendung zu starten.
return FALSE;
}