>The Window menu also lists (at the bottom) the child windows that are currently >open in the application. When the user selects one of these windows from the >menu, the window becomes the active window in the application.
多谢!
我正在做一个MDI application,为了界面好看,我用了一个child window来布置界面放在工作区,可是我不想它被The Window menu lists,主要是想防止用户通过菜单将它激活,the window becomes the active window in the application,破坏整个application的布局.
Use WindowMenu to get or set the Window menu for an MDI parent form. The Window menu is a standard menu in MDI applications. It contains commands that let the user manage the windows in the application. Menu items usually include Cascade, Arrange Icons, Tile, and so on.
The Window menu also lists (at the bottom) the child windows that are currently open in the application. When the user selects one of these windows from the menu, the window becomes the active window in the application.
Although this menu is commonly called the Window menu, it can have any name that corresponds to an existing menu item on the menu bar. The names of open child forms are merged onto the menu automatically at run-time.
WindowMenu is meaningful only if the form is an MDI parent (that is, if the form抯 FormStyle property is set to fsMDIForm).