return false from IsDoubleBuffered() if the first top level parent is not double buffered
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3952,13 +3952,12 @@ bool wxWindowMSW::HandlePower(WXWPARAM WXUNUSED_IN_WINCE(wParam),
|
|||||||
|
|
||||||
bool wxWindowMSW::IsDoubleBuffered() const
|
bool wxWindowMSW::IsDoubleBuffered() const
|
||||||
{
|
{
|
||||||
const wxWindow* wnd = this;
|
for ( const wxWindow *wnd = this;
|
||||||
|
wnd && !wnd->IsTopLevel(); wnd =
|
||||||
while ( wnd )
|
wnd->GetParent() )
|
||||||
{
|
{
|
||||||
if ( ::GetWindowLong((HWND)wnd->GetHWND(), GWL_EXSTYLE) & WS_EX_COMPOSITED )
|
if ( ::GetWindowLong(GetHwndOf(wnd), GWL_EXSTYLE) & WS_EX_COMPOSITED )
|
||||||
return true;
|
return true;
|
||||||
wnd = wnd->GetParent();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user