we now send iconize events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -260,22 +260,20 @@ void wxFrame::DoSetClientSize(int width, int height)
|
||||
|
||||
void wxFrame::DoGetSize(int *width, int *height) const
|
||||
{
|
||||
RECT rect;
|
||||
GetWindowRect(GetHwnd(), &rect);
|
||||
*width = rect.right - rect.left;
|
||||
*height = rect.bottom - rect.top;
|
||||
RECT rect;
|
||||
::GetWindowRect(GetHwnd(), &rect);
|
||||
|
||||
*width = rect.right - rect.left;
|
||||
*height = rect.bottom - rect.top;
|
||||
}
|
||||
|
||||
void wxFrame::DoGetPosition(int *x, int *y) const
|
||||
{
|
||||
RECT rect;
|
||||
GetWindowRect(GetHwnd(), &rect);
|
||||
POINT point;
|
||||
point.x = rect.left;
|
||||
point.y = rect.top;
|
||||
RECT rect;
|
||||
::GetWindowRect(GetHwnd(), &rect);
|
||||
|
||||
*x = point.x;
|
||||
*y = point.y;
|
||||
*x = rect.left;
|
||||
*y = rect.top;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -976,6 +974,8 @@ bool wxFrame::HandleSize(int x, int y, WXUINT id)
|
||||
// restore all child frames too
|
||||
IconizeChildFrames(FALSE);
|
||||
|
||||
(void)SendIconizeEvent(FALSE);
|
||||
|
||||
// fall through
|
||||
|
||||
case SIZEFULLSCREEN:
|
||||
@@ -986,6 +986,8 @@ bool wxFrame::HandleSize(int x, int y, WXUINT id)
|
||||
// iconize all child frames too
|
||||
IconizeChildFrames(TRUE);
|
||||
|
||||
(void)SendIconizeEvent();
|
||||
|
||||
m_iconized = TRUE;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user