viewtopic.php?f=15&t=434&p=1068#p1068
It seems Vista doesn't like transparent pens.
- Code: Select all
--- framemanager-base.cpp Fri Oct 26 12:10:02 2007
+++ framemanager.cpp Fri Oct 26 14:52:15 2007
@@ -68,4 +68,9 @@
#endif
+#ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h"
+ #include "wx/msw/private.h"
+#endif
+
IMPLEMENT_DYNAMIC_CLASS(wxAuiManagerEvent, wxEvent)
IMPLEMENT_CLASS(wxAuiManager, wxEvtHandler)
@@ -224,8 +229,13 @@
wxBrush brush(stipple);
dc.SetBrush(brush);
+
+#ifdef __WXMSW__
+ PatBlt(GetHdcOf(dc), rect.GetX(), rect.GetY(), rect.GetWidth(), rect.GetHeight(), PATINVERT);
+#else
dc.SetPen(*wxTRANSPARENT_PEN);
dc.SetLogicalFunction(wxXOR);
dc.DrawRectangle(rect);
+#endif
}