added orient parameter to wxMDIParentFrame::Tile()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-03-21 12:27:49 +00:00
parent 3b880f293e
commit 0d97c09023
14 changed files with 70 additions and 59 deletions

View File

@@ -384,10 +384,14 @@ void wxMDIParentFrame::Cascade()
::SendMessage(GetWinHwnd(GetClientWindow()), WM_MDICASCADE, 0, 0);
}
// TODO: add a direction argument (hor/vert)
void wxMDIParentFrame::Tile()
void wxMDIParentFrame::Tile(wxOrientation orient)
{
::SendMessage(GetWinHwnd(GetClientWindow()), WM_MDITILE, MDITILE_HORIZONTAL, 0);
wxASSERT_MSG( orient == wxHORIZONTAL || orient == wxVERTICAL,
_T("invalid orientation value") );
::SendMessage(GetWinHwnd(GetClientWindow()), WM_MDITILE,
orient == wxHORIZONTAL ? MDITILE_HORIZONTAL
: MDITILE_VERTICAL, 0);
}
void wxMDIParentFrame::ArrangeIcons()