diff options
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; |