Fix from wxAUI forum (http://www.kirix.com/forums/viewtopic.php?f=16&t=564) for display problem on Vista

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-11-09 12:06:11 +00:00
parent 3b19dd2ff1
commit 91ee4921fc

View File

@@ -67,11 +67,15 @@ DEFINE_EVENT_TYPE(wxEVT_AUI_FIND_MANAGER)
#include "wx/mac/private.h" #include "wx/mac/private.h"
#endif #endif
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#include "wx/msw/private.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxAuiManagerEvent, wxEvent) IMPLEMENT_DYNAMIC_CLASS(wxAuiManagerEvent, wxEvent)
IMPLEMENT_CLASS(wxAuiManager, wxEvtHandler) IMPLEMENT_CLASS(wxAuiManager, wxEvtHandler)
const int auiToolBarLayer = 10; const int auiToolBarLayer = 10;
#ifndef __WXGTK20__ #ifndef __WXGTK20__
@@ -289,10 +293,15 @@ static void DrawResizeHint(wxDC& dc, const wxRect& rect)
wxBitmap stipple = wxPaneCreateStippleBitmap(); wxBitmap stipple = wxPaneCreateStippleBitmap();
wxBrush brush(stipple); wxBrush brush(stipple);
dc.SetBrush(brush); dc.SetBrush(brush);
#ifdef __WXMSW__
PatBlt(GetHdcOf(dc), rect.GetX(), rect.GetY(), rect.GetWidth(), rect.GetHeight(), PATINVERT);
#else
dc.SetPen(*wxTRANSPARENT_PEN); dc.SetPen(*wxTRANSPARENT_PEN);
dc.SetLogicalFunction(wxXOR); dc.SetLogicalFunction(wxXOR);
dc.DrawRectangle(rect); dc.DrawRectangle(rect);
#endif
} }