added wxWindow::IsDoubleBuffered() and improve wxBufferedDC (patch 1565330)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3950,6 +3950,20 @@ bool wxWindowMSW::HandlePower(WXWPARAM WXUNUSED_IN_WINCE(wParam),
|
||||
#endif
|
||||
}
|
||||
|
||||
bool wxWindowMSW::IsDoubleBuffered() const
|
||||
{
|
||||
const wxWindow* wnd = this;
|
||||
|
||||
while ( wnd )
|
||||
{
|
||||
if ( ::GetWindowLong((HWND)wnd->GetHWND(), GWL_EXSTYLE) & WS_EX_COMPOSITED )
|
||||
return true;
|
||||
wnd = wnd->GetParent();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// owner drawn stuff
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user