CMDIFrameWndEx::EnableWindowsDialog
Visual Studio 2012
Inserts a menu item whose command ID calls a CMFCWindowsManagerDialog dialog box.
void EnableWindowsDialog( UINT uiMenuId, LPCTSTR lpszMenuText, BOOL bShowAllways=FALSE, BOOL bShowHelpButton=FALSE ); void EnableWindowsDialog( UINT uiMenuId, UINT uiMenuTextResId, BOOL bShowAllways=FALSE, BOOL bShowHelpButton=FALSE );
Use this method to insert a menu item whose command calls a MDI child window management dialog box (CMFCWindowsManagerDialog Class). The new item is inserted into the menu specified by uiMenuId. Call EnableWindowsDialog when you process the WM_CREATE message.
The following example shows how EnableWindowsDialog is used in the VisualStudioDemo Sample: MFC Visual Studio Application.
// Enable windows manager: EnableWindowsDialog(ID_WINDOW_MANAGER, _T("Windows..."), TRUE);