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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user