Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
x
y
z
Variables
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
e
t
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
p
q
r
s
t
u
v
w
y
Variables
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
+
Enumerator
e
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
IVT
src
gui
win32
Win32ApplicationHandler.cpp
Go to the documentation of this file.
1
// ****************************************************************************
2
// Filename: Win32ApplicationHandler.cpp
3
// Author: Florian Hecht
4
// Date: 2008
5
// ****************************************************************************
6
7
8
// ****************************************************************************
9
// Includes
10
// ****************************************************************************
11
12
#include "
Win32ApplicationHandler.h
"
13
14
#include <windows.h>
15
#include <commctrl.h>
16
17
#include <stdio.h>
18
19
20
// ****************************************************************************
21
// Constructor / Destructor
22
// ****************************************************************************
23
24
CWin32ApplicationHandler::CWin32ApplicationHandler
()
25
{
26
InitCommonControls();
27
}
28
29
CWin32ApplicationHandler::~CWin32ApplicationHandler
()
30
{
31
32
}
33
34
35
// ****************************************************************************
36
// Methods
37
// ****************************************************************************
38
39
bool
CWin32ApplicationHandler::ProcessEventsAndGetExit
()
40
{
41
MSG msg;
42
43
// check if a message is waiting
44
while
(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
45
{
46
if
(msg.message == WM_QUIT)
47
{
48
return
true
;
49
}
50
else
51
{
52
TranslateMessage(&msg);
53
DispatchMessage(&msg);
54
}
55
}
56
57
return
false
;
58
}
CWin32ApplicationHandler::CWin32ApplicationHandler
CWin32ApplicationHandler()
Definition:
Win32ApplicationHandler.cpp:24
Win32ApplicationHandler.h
CWin32ApplicationHandler::ProcessEventsAndGetExit
bool ProcessEventsAndGetExit()
Definition:
Win32ApplicationHandler.cpp:39
CWin32ApplicationHandler::~CWin32ApplicationHandler
~CWin32ApplicationHandler()
Definition:
Win32ApplicationHandler.cpp:29
asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Feb 28 2022 21:44:00