CMFCToolBarsCustomizeDialog::CMFCToolBarsCustomizeDialog

Constructs a CMFCToolBarsCustomizeDialog object.

CMFCToolBarsCustomizeDialog(
   CFrameWnd* pWndParentFrame,
   BOOL bAutoSetFromMenus = FALSE,
   UINT uiFlags = (AFX_CUSTOMIZE_MENU_SHADOWS | AFX_CUSTOMIZE_TEXT_LABELS | AFX_CUSTOMIZE_MENU_ANIMATIONS | AFX_CUSTOMIZE_NOHELP),
   CList <CRuntimeClass*, CRuntimeClass*>* plistCustomPages = NULL
);

Parameters

  • [in] pWndParentFrame
    A pointer to the parent frame. This parameter must not be NULL.

  • [in] bAutoSetFromMenus
    A Boolean value that specifies whether to add the menu commands from all menus to the list of commands on the Commands page. If this parameter is TRUE, the menu commands are added. Otherwise, the menu commands are not added.

  • [in] uiFlags
    A combination of flags that affect the behavior of the dialog box. This parameter can be one or more of the following values:

    • AFX_CUSTOMIZE_MENU_SHADOWS

    • AFX_CUSTOMIZE_TEXT_LABELS

    • AFX_CUSTOMIZE_MENU_ANIMATIONS

    • AFX_CUSTOMIZE_NOHELP

    • AFX_CUSTOMIZE_CONTEXT_HELP

    • AFX_CUSTOMIZE_NOTOOLS

    • AFX_CUSTOMIZE_MENUAMPERS

    • AFX_CUSTOMIZE_NO_LARGE_ICONS

  • [in] plistCustomPages
    A pointer to a list of CRuntimeClass objects that specify additional custom pages.

Remarks

The plistCustomPages parameter refers to the list of CRuntimeClass objects that specify additional custom pages. The constructor adds more pages to the dialog box by using the CRuntimeClass::CreateObject method. See the CustomPages sample for an example that adds more pages to the Customize dialog box.

For more information about the values that you can pass in the uiFlags parameter, see CMFCToolBarsCustomizeDialog::GetFlags.

Example

The following example demonstrates how to construct an object of the CMFCToolBarsCustomizeDialog class. This code snippet is part of the Custom Pages sample.

 CMFCToolBarsCustomizeDialog* pDlgCust = new CMFCToolBarsCustomizeDialog (this,
        TRUE /* Automatic menus scaning */, 
        AFX_CUSTOMIZE_MENU_SHADOWS | AFX_CUSTOMIZE_TEXT_LABELS | 
        AFX_CUSTOMIZE_MENU_ANIMATIONS, // default parameters
        &lstCustomPages); // pointer to the list of runtime classes of the custom property pages

Requirements

Header: afxtoolbarscustomizedialog.h

See Also

Reference

CMFCToolBarsCustomizeDialog Class

Hierarchy Chart

CRuntimeClass::CreateObject

CMFCToolBarsCustomizeDialog::GetFlags