Partager via


CMFCToolBarsCustomizeDialog::GetCountInCategory

Retrieves the number of items in the provided list that have a given text label.

int GetCountInCategory(
   LPCTSTR lpszItemName,
   const CObList& lstCommands
) const;

Parameters

  • [in] lpszItemName
    The text label to match.

  • [in] lstCommands
    A reference to a list that contains CMFCToolBarButton objects.

Return Value

The number of items in the provided list whose text label equals lpszItemName.

Remarks

Each element in the provided object list must be of type CMFCToolBarButton. This method compares lpszItemName with the CMFCToolBarButton::m_strText data member.

Requirements

Header: afxtoolbarscustomizedialog.h

See Also

Reference

CMFCToolBarsCustomizeDialog Class

Hierarchy Chart

CMFCToolBarButton Class

CMFCToolBarButton::m_strText