From d3f5d09d479cb1744c7e9ab52486cf4bca45493a Mon Sep 17 00:00:00 2001 From: "Unknown (MT)" Date: Fri, 17 Mar 2000 08:07:00 +0000 Subject: [PATCH] no message git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/app.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 95ca2a631d..bdd7b51a52 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -139,7 +139,9 @@ const wxChar *wxMDIFrameClassNameNoRedraw = wxT("wxMDIFrameClassNR"); const wxChar *wxMDIChildFrameClassName = wxT("wxMDIChildFrameClass"); const wxChar *wxMDIChildFrameClassNameNoRedraw = wxT("wxMDIChildFrameClassNR"); const wxChar *wxPanelClassName = wxT("wxPanelClass"); +const wxChar *wxPanelClassNameNR = wxT("wxPanelClassNR"); const wxChar *wxCanvasClassName = wxT("wxCanvasClass"); +const wxChar *wxCanvasClassNameNR = wxT("wxCanvasClassNR"); HICON wxSTD_FRAME_ICON = (HICON) NULL; HICON wxSTD_MDICHILDFRAME_ICON = (HICON) NULL; @@ -379,6 +381,17 @@ bool wxApp::RegisterWindowClasses() return FALSE; } + // Register the no redraw panel window class. + wndclass.lpszClassName = wxPanelClassNameNR; + wndclass.style = styleNoRedraw; + + if ( !RegisterClass(&wndclass) ) + { + wxLogLastError("RegisterClass(no redraw panel)"); + + return FALSE; + } + // Register the canvas and textsubwindow class name wndclass.hbrBackground = (HBRUSH)NULL; wndclass.lpszClassName = wxCanvasClassName; @@ -390,6 +403,15 @@ bool wxApp::RegisterWindowClasses() return FALSE; } + wndclass.lpszClassName = wxCanvasClassNameNR; + wndclass.style = styleNoRedraw; + if ( !RegisterClass(&wndclass) ) + { + wxLogLastError("RegisterClass(no redraw canvas)"); + + return FALSE; + } + return TRUE; } -- 2.49.0