From: Václav Slavík Date: Wed, 26 Jun 2002 19:16:13 +0000 (+0000) Subject: compilation fix (wxUniv/MSW) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fa21d3389ba889f2e79be785e8e426ec2256a4b9?ds=inline compilation fix (wxUniv/MSW) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 08658aa717..cc725c6280 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -3607,7 +3607,7 @@ bool wxWindowMSW::HandlePaletteChanged(WXHWND hWndPalChange) if ( hWndPalChange != GetHWND() ) { // check to see if we our our parents have a custom palette - wxWindow *win = this; + wxWindowMSW *win = this; while ( win && !win->HasCustomPalette() ) { win = win->GetParent(); @@ -3656,7 +3656,7 @@ bool wxWindowMSW::HandleQueryNewPalette() #if wxUSE_PALETTE // check to see if we our our parents have a custom palette - wxWindow *win = this; + wxWindowMSW *win = this; while (!win->HasCustomPalette() && win->GetParent()) win = win->GetParent(); if (win->HasCustomPalette()) { /* realize the palette to see whether redrawing is needed */