no message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Unknown (MT) 2000-03-17 08:07:00 +00:00
parent c3cea74805
commit d3f5d09d47

View File

@ -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;
}