Set size of hint window before showing it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-08-22 22:37:15 +00:00
parent 1417c81163
commit e65fbef69d

View File

@@ -2656,6 +2656,8 @@ void wxFrameManager::ShowHint(const wxRect& rect)
)
m_hint_fadeamt = 0;
m_hint_wnd->SetSize(rect);
if (! m_hint_wnd->IsShown())
m_hint_wnd->Show();
@@ -2670,7 +2672,6 @@ void wxFrameManager::ShowHint(const wxRect& rect)
if (m_hint_wnd->IsKindOf(CLASSINFO(wxPseudoTransparentFrame)))
((wxPseudoTransparentFrame *)m_hint_wnd)->SetTransparent(m_hint_fadeamt);
#endif
m_hint_wnd->SetSize(rect);
m_hint_wnd->Raise();