Mercurial > mm7
comparison OSWindow.h @ 2005:8fa26b63244a
Merge
author | Grumpy7 |
---|---|
date | Wed, 06 Nov 2013 00:09:47 -0800 |
parents | 4088cc908c78 |
children | 71a814f4482a |
comparison
equal
deleted
inserted
replaced
2004:2bcb4ec491cb | 2005:8fa26b63244a |
---|---|
4 | 4 |
5 class OSWindow: public UIControl | 5 class OSWindow: public UIControl |
6 { | 6 { |
7 public: | 7 public: |
8 static OSWindow *Create(const wchar_t *title, int window_width, int window_height); | 8 static OSWindow *Create(const wchar_t *title, int window_width, int window_height); |
9 | 9 void Delete(); |
10 | 10 |
11 void SetFullscreenMode(); | 11 void SetFullscreenMode(); |
12 void SetWindowedMode(int new_window_width, int new_window_height); | 12 void SetWindowedMode(int new_window_width, int new_window_height); |
13 void SetCursor(const char *cursor_name); | 13 void SetCursor(const char *cursor_name); |
14 | 14 |
36 // UIControl | 36 // UIControl |
37 //virtual bool OnMouseLeave() override; | 37 //virtual bool OnMouseLeave() override; |
38 | 38 |
39 protected: | 39 protected: |
40 bool Initialize(const wchar_t *title, int window_width, int window_height); | 40 bool Initialize(const wchar_t *title, int window_width, int window_height); |
41 void Deinitialize(); | |
42 bool SetColorDepth(int bit); | |
41 bool WinApiMessageProc(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *result); | 43 bool WinApiMessageProc(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *result); |
42 | 44 |
43 HWND api_handle; | 45 HWND api_handle; |
46 DEVMODE dm; | |
44 | 47 |
45 private: | 48 private: |
49 bool ChangedColorDepth; | |
46 static LPARAM __stdcall WinApiMsgRouter(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); | 50 static LPARAM __stdcall WinApiMsgRouter(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); |
47 | 51 |
48 HMENU CreateDebugMenuPanel(); | 52 HMENU CreateDebugMenuPanel(); |
49 }; | 53 }; |