compilation fix (wxUniv/MSW)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-06-26 19:16:13 +00:00
parent 0d5b4bc274
commit fa21d3389b

View File

@@ -3607,7 +3607,7 @@ bool wxWindowMSW::HandlePaletteChanged(WXHWND hWndPalChange)
if ( hWndPalChange != GetHWND() ) if ( hWndPalChange != GetHWND() )
{ {
// check to see if we our our parents have a custom palette // check to see if we our our parents have a custom palette
wxWindow *win = this; wxWindowMSW *win = this;
while ( win && !win->HasCustomPalette() ) while ( win && !win->HasCustomPalette() )
{ {
win = win->GetParent(); win = win->GetParent();
@@ -3656,7 +3656,7 @@ bool wxWindowMSW::HandleQueryNewPalette()
#if wxUSE_PALETTE #if wxUSE_PALETTE
// check to see if we our our parents have a custom 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(); while (!win->HasCustomPalette() && win->GetParent()) win = win->GetParent();
if (win->HasCustomPalette()) { if (win->HasCustomPalette()) {
/* realize the palette to see whether redrawing is needed */ /* realize the palette to see whether redrawing is needed */