From 452eceb3ba4bdbbc77786dc7f7235c03f1c62302 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 15 Nov 2021 01:19:35 +0800 Subject: *class --- Editor/GUI/ContainerWindow.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'Editor/GUI/ContainerWindow.cpp') diff --git a/Editor/GUI/ContainerWindow.cpp b/Editor/GUI/ContainerWindow.cpp index f76ac73..7a71d14 100644 --- a/Editor/GUI/ContainerWindow.cpp +++ b/Editor/GUI/ContainerWindow.cpp @@ -43,22 +43,22 @@ LRESULT CALLBACK ContainerWindow::ContainerWndProc(HWND hWnd, UINT message, WPAR } case WM_SETICON: return WM_SETICON; - case WM_PAINT: - { - static PAINTSTRUCT ps; - self->SetAsRenderContext(); - - glEnable(GL_BLEND); - float c = 26 / 255.f; - glClearColor(c, c, c, 1); - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glFlush(); - - BeginPaint(self->m_Window, &ps); - EndPaint(self->m_Window, &ps); - UpdateWindow(self->m_Window); - return 0; - } + //case WM_PAINT: + //{ + // static PAINTSTRUCT ps; + // self->SetAsRenderContext(); + + // glEnable(GL_BLEND); + // float c = 26 / 255.f; + // glClearColor(c, c, c, 1); + // glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + // glFlush(); + + // BeginPaint(self->m_Window, &ps); + // EndPaint(self->m_Window, &ps); + // UpdateWindow(self->m_Window); + // return 0; + //} case WM_ENTERMENULOOP: // µã»÷²Ëµ¥ return 0; -- cgit v1.1-26-g67d0