Etterna 0.74.4
Loading...
Searching...
No Matches
WindowsDialogBox.h
1/* WindowsDialogBox - Simplifies the creation of modal Windows dialog boxes. */
2
3#ifndef WINDOWS_DIALOG_BOX_H
4#define WINDOWS_DIALOG_BOX_H
5
6#include <windows.h>
7
9{
10 public:
12 virtual ~WindowsDialogBox() {}
13 void Run(int iDialog);
14
15 HWND GetHwnd() { return m_hWnd; }
16
17 protected:
18 virtual BOOL HandleMessage(UINT msg, WPARAM wParam, LPARAM lParam)
19 {
20 return false;
21 }
22
23 private:
24 static INT_PTR APIENTRY DlgProc(HWND hDlg,
25 UINT msg,
26 WPARAM wParam,
27 LPARAM lParam);
28 HWND m_hWnd;
29};
30
31#endif
Definition WindowsDialogBox.h:9