Share via


CMFCToolBarsCustomizeDialog::OnEditToolbarMenuImage

Starts an image editor so that a user can customize a toolbar button or menu item icon.

virtual BOOL OnEditToolbarMenuImage(
   CWnd* pWndParent,
   CBitmap& bitmap,
   int nBitsPerPixel 
);

Parameters

  • [in] pWndParent
    A pointer to the parent window.

  • [in] bitmap
    A reference to a bitmap object to be edited.

  • [in] nBitsPerPixel
    Bitmap color resolution, in bits per pixel.

Return Value

TRUE if a change is being committed; otherwise FALSE. The default implementation displays a dialog box and returns TRUE if the user clicks OK, or FALSE if the user clicks Cancel or the Close button.

Remarks

This method is called by the framework when the user runs the image editor. The default implementation displays CMFCImageEditorDialog Class dialog box. Override OnEditToolbarMenuImage in a derived class to use a custom image editor.

Requirements

Header: afxToolBarsCustomizeDialog.h

See Also

Reference

CMFCToolBarsCustomizeDialog Class

Hierarchy Chart