Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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 Dec 2 2019 03:47:28