Udostępnij za pośrednictwem


CMFCToolBarButton::CMFCToolBarButton

Constructs and initializes a CMFCToolBarButton object.

CMFCToolBarButton(
   UINT uiID,
   int iImage,
   LPCTSTR lpszText=NULL,
   BOOL bUserButton=FALSE,
   BOOL bLocked=FALSE
);

Parameters

  • [in] uiID
    The command ID of the button.

  • [in] iImage
    The image index of the button in the collection of images.

  • [in] lpszText
    The text label of the button. Can be NULL.

  • [in] bUserButton
    A Boolean value that determines whether the button is user-defined. If this parameter is TRUE, the button is user-defined. Otherwise, the button image is loaded from a resource.

  • [in] bLocked
    A Boolean value that determines whether the button can be customized. If this parameter is TRUE, the button cannot be customized. Otherwise, the button can be customized.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart