refactor WM_COMMAND messages handling in MDI frames to avoid duplicating code unnecessarily and generally streamline it; added possibility to use custom menu commands in the "Window" menu and specifying accelerators for them now works too (show this in the sample); finally added standard ids for the MDI window menu commands

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-01-27 16:47:41 +00:00
parent 67fdb6f9af
commit 1483e5db8d
9 changed files with 216 additions and 201 deletions

View File

@@ -310,6 +310,17 @@ public:
window style but this function also allows to do it by passing @NULL
pointer as @a menu.
The menu may include the items with the following standard identifiers
(but may use arbitrary text and help strings and bitmaps for them):
- @c wxID_MDI_WINDOW_CASCADE
- @c wxID_MDI_WINDOW_TILE_HORZ
- @c wxID_MDI_WINDOW_TILE_VERT
- @c wxID_MDI_WINDOW_ARRANGE_ICONS
- @c wxID_MDI_WINDOW_PREV
- @c wxID_MDI_WINDOW_NEXT
All of which are handled by wxMDIParentFrame itself. If any other
commands are used in the menu, the derived frame should handle them.
This function is currently not available under OS X.
@param menu