From 6f326b50d86fab5955a37fe317f14888662b055a Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 13 Nov 2020 19:18:49 +0800 Subject: +misc --- Editor/GUI/EditorWindows.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'Editor/GUI/EditorWindows.h') 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 -#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; -- cgit v1.1-26-g67d0