forked from derandark/DungeonViewerAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainDialog.h
37 lines (27 loc) · 800 Bytes
/
MainDialog.h
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
#pragma once
// static Dialog interface.
#define DEF_BACKGROUND_COLOR 0x00000000UL
#define DEF_WINDOW_WIDTH 1200 // 800
#define DEF_WINDOW_HEIGHT 920 // 620
#define DEF_CLASS_NAME "DungeonViewer"
#define DEF_WINDOW_NAME "Dungeon Viewer"
class MainDialog
{
public:
static void Init();
static void Cleanup();
static void RegisterClass();
static void UnregisterClass();
static BOOL Create();
static BOOL LoadHotkeys();
static long Modal();
static HFONT GetWindowFont();
static HWND GetWindowHandle();
private:
static void SaveScreenshot();
static LRESULT WndProc(HWND hWnd, UINT MsgID, WPARAM wParam, LPARAM lParam);
static HWND m_hWnd;
static HBRUSH m_hBGBrush;
static HFONT m_hFont;
static HACCEL m_hAccelTable;
};