Various fixes for Textctrl and Popup Menus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -593,6 +593,11 @@ void wxTopLevelWindowOS2::DoShowWindow(
|
||||
)
|
||||
{
|
||||
::WinShowWindow(m_hFrame, (BOOL)(nShowCmd & SWP_SHOW));
|
||||
|
||||
//
|
||||
// Need to artificially send a size event as wxApps often expect to do some
|
||||
// final child control sizing
|
||||
SendSizeEvent();
|
||||
m_bIconized = nShowCmd == SWP_MINIMIZE;
|
||||
} // end of wxTopLevelWindowOS2::DoShowWindow
|
||||
|
||||
@@ -716,6 +721,21 @@ void wxTopLevelWindowOS2::Restore()
|
||||
DoShowWindow(SWP_RESTORE);
|
||||
} // end of wxTopLevelWindowOS2::Restore
|
||||
|
||||
// generate an artificial resize event
|
||||
void wxTopLevelWindowOS2::SendSizeEvent()
|
||||
{
|
||||
if (!m_bIconized)
|
||||
{
|
||||
RECTL vRect = wxGetWindowRect(GetHwnd());
|
||||
|
||||
(void)::WinPostMsg( m_hFrame
|
||||
,WM_SIZE
|
||||
,MPFROM2SHORT(vRect.xRight - vRect.xLeft, vRect.yTop - vRect.yBottom)
|
||||
,MPFROM2SHORT(vRect.xRight - vRect.xLeft, vRect.yTop - vRect.yBottom)
|
||||
);
|
||||
}
|
||||
} // end of wxTopLevelWindowOS2::SendSizeEvent
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTopLevelWindowOS2 fullscreen
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user