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:
@@ -67,11 +67,15 @@ DEFINE_EVENT_TYPE(wxEVT_AUI_FIND_MANAGER)
|
||||
#include "wx/mac/private.h"
|
||||
#endif
|
||||
|
||||
#ifdef __WXMSW__
|
||||
#include "wx/msw/wrapwin.h"
|
||||
#include "wx/msw/private.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxAuiManagerEvent, wxEvent)
|
||||
IMPLEMENT_CLASS(wxAuiManager, wxEvtHandler)
|
||||
|
||||
|
||||
|
||||
const int auiToolBarLayer = 10;
|
||||
|
||||
#ifndef __WXGTK20__
|
||||
@@ -247,12 +251,12 @@ public:
|
||||
return;
|
||||
|
||||
m_title = title;
|
||||
|
||||
|
||||
m_widget = gtk_window_new( GTK_WINDOW_POPUP );
|
||||
|
||||
g_signal_connect( m_widget, "realize",
|
||||
G_CALLBACK (gtk_pseudo_window_realized_callback), this );
|
||||
|
||||
|
||||
GdkColor col;
|
||||
col.red = 128 * 256;
|
||||
col.green = 192 * 256;
|
||||
@@ -264,7 +268,7 @@ public:
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPseudoTransparentFrame)
|
||||
};
|
||||
@@ -289,10 +293,15 @@ static void DrawResizeHint(wxDC& dc, const wxRect& rect)
|
||||
wxBitmap stipple = wxPaneCreateStippleBitmap();
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -509,7 +518,7 @@ static void RenumberDockRows(wxAuiDockInfoPtrArray& docks)
|
||||
{
|
||||
wxAuiDockInfo& dock = *docks.Item(i);
|
||||
dock.dock_row = i;
|
||||
|
||||
|
||||
int j, pane_count;
|
||||
for (j = 0, pane_count = dock.panes.GetCount(); j < pane_count; ++j)
|
||||
dock.panes.Item(j)->dock_row = i;
|
||||
@@ -4436,7 +4445,7 @@ void wxAuiManager::OnPaneButton(wxAuiManagerEvent& evt)
|
||||
{
|
||||
ClosePane(pane);
|
||||
}
|
||||
|
||||
|
||||
Update();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user