move SendSizeEvent() down to wxWindow from wxFrame; added SendSizeEventToParent() helper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1379,20 +1379,3 @@ wxWindow* wxFrame::GetClient()
|
||||
return wxFindWinFromHandle((WXHWND)::WinWindowFromID(m_hFrame, FID_CLIENT));
|
||||
}
|
||||
|
||||
void wxFrame::SendSizeEvent()
|
||||
{
|
||||
if (!m_bIconized)
|
||||
{
|
||||
RECTL vRect = wxGetWindowRect(GetHwnd());
|
||||
|
||||
::WinPostMsg( GetHwnd()
|
||||
,WM_SIZE
|
||||
,MPFROM2SHORT( vRect.xRight - vRect.xLeft
|
||||
,vRect.xRight - vRect.xLeft
|
||||
)
|
||||
,MPFROM2SHORT( vRect.yTop - vRect.yBottom
|
||||
,vRect.yTop - vRect.yBottom
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user