removed tab characters; minor code cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3869,7 +3869,7 @@ bool wxWindowMSW::HandleQueryNewPalette()
|
|||||||
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 */
|
||||||
HDC hdc = GetDC((HWND) GetHWND());
|
HDC hdc = ::GetDC((HWND) GetHWND());
|
||||||
win->m_palette.SetHPALETTE( (WXHPALETTE)
|
win->m_palette.SetHPALETTE( (WXHPALETTE)
|
||||||
::SelectPalette(hdc, (HPALETTE) win->m_palette.GetHPALETTE(), FALSE) );
|
::SelectPalette(hdc, (HPALETTE) win->m_palette.GetHPALETTE(), FALSE) );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user