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.cpp | |
parent | 59e6235113a4d933811aa2cf6fdc8282ce394b9d (diff) |
+misc
Diffstat (limited to 'Editor/GUI/EditorWindows.cpp')
-rw-r--r-- | Editor/GUI/EditorWindows.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Editor/GUI/EditorWindows.cpp b/Editor/GUI/EditorWindows.cpp index 18f2e3a..00c573a 100644 --- a/Editor/GUI/EditorWindows.cpp +++ b/Editor/GUI/EditorWindows.cpp @@ -14,7 +14,7 @@ void RegisterWindowClasses() {
s_ContainerWindowClassAtom = winutils::RegisterWindowClass(kContainerWindowClassName, ContainnerWindow::ContainerWndProc, CS_HREDRAW | CS_VREDRAW); s_PopupWindowClassAtom = winutils::RegisterWindowClass(kPopupWindowClassName, ContainnerWindow::ContainerWndProc, CS_HREDRAW | CS_VREDRAW | CS_DROPSHADOW);//CS_HREDRAW宽度(水平)变化时重绘、CS_VREDRAW高度(垂直)变化时重绘 - s_GUIViewClassAtom = winutils::RegisterWindowClass(kViewportClassName, Viewport::ViewportWndProc, CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS); + s_GUIViewClassAtom = winutils::RegisterWindowClass(kViewportClassName, GUIView::GUIViewWndProc, CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS); }
LRESULT CALLBACK ContainnerWindow::ContainerWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
@@ -156,9 +156,15 @@ void ContainnerWindow::Init(Rectf pixelRect, int showMode, const Vector2f& minSi }
-LRESULT CALLBACK Viewport::ViewportWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+//------------------------------------------------------------------------------------------------------------------
+
+LRESULT CALLBACK GUIView::GUIViewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
long flag = DefWindowProcW(hWnd, message, wParam, lParam); return flag; } +void GUIView::DoPaint() +{
+ +}
\ No newline at end of file |