diff options
author | chai <chaifix@163.com> | 2020-11-13 19:18:49 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-13 19:18:49 +0800 |
commit | 6f326b50d86fab5955a37fe317f14888662b055a (patch) | |
tree | 0b4853085d92c2e7ae10917c466cde4f68f21a2b /Editor/GUI/EditorWindows.h | |
parent | 59e6235113a4d933811aa2cf6fdc8282ce394b9d (diff) |
+misc
Diffstat (limited to 'Editor/GUI/EditorWindows.h')
-rw-r--r-- | Editor/GUI/EditorWindows.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Editor/GUI/EditorWindows.h b/Editor/GUI/EditorWindows.h index ca1c059..a78e163 100644 --- a/Editor/GUI/EditorWindows.h +++ b/Editor/GUI/EditorWindows.h @@ -2,7 +2,7 @@ #define EDITOR_WINDOW_H #include <windows.h> -#include "../../Runtime/Math/Rect.h" +#include "Runtime/Math/Rect.h" void RegisterWindowClasses(); @@ -29,22 +29,24 @@ public: private: HWND m_Window; POINT m_Size; - ShowMode m_ShowMode; - bool m_IsClosing; - bool m_InMenuLoop; - bool m_CloseFromScriptDontShutdown; - Rectf m_InternalRect; - POINT m_MinSize; - POINT m_MaxSize; + ShowMode m_ShowMode; // 窗口类型 + bool m_IsClosing; + bool m_InMenuLoop; + bool m_CloseFromScriptDontShutdown; + Rectf m_InternalRect; + POINT m_MinSize; + POINT m_MaxSize; }; // 窗口内的单个子窗口,是事件相应、绘制、布局的单元 -class Viewport +class GUIView { public: - static LRESULT CALLBACK ViewportWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); + static LRESULT CALLBACK GUIViewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); + + void DoPaint(); private: HWND m_View; |