Etterna
0.74.4
Loading...
Searching...
No Matches
src
archutils
Win32
MessageWindow.h
1
/* MessageWindow - simplifies creation of windows that exist only to receive
2
* messages. */
3
4
#ifndef MESSAGE_WINDOW_H
5
#define MESSAGE_WINDOW_H
6
7
#include <windows.h>
8
9
class
MessageWindow
10
{
11
public
:
12
MessageWindow
(
const
std::string& sClassName);
13
~MessageWindow
();
14
15
/* Run the message loop until WM_QUIT is received. */
16
void
Run();
17
18
HWND GetHwnd() {
return
m_hWnd; }
19
20
protected
:
21
virtual
bool
HandleMessage(UINT
/* msg */
,
22
WPARAM
/* wParam */
,
23
LPARAM
/* lParam */
)
24
{
25
return
false
;
26
}
27
void
StopRunning();
28
29
private
:
30
static
LRESULT CALLBACK WndProc(HWND hWnd,
31
UINT msg,
32
WPARAM wParam,
33
LPARAM lParam);
34
HWND m_hWnd;
35
bool
m_bDone;
36
};
37
38
#endif
MessageWindow
Definition
MessageWindow.h:10
Generated by
1.9.8