Partager via


CMFCMenuBar::EnableHelpCombobox

Enables a Help combo box that is located on the right side of the menu bar.

void EnableHelpCombobox(
   UINT uiID,
   LPCTSTR lpszPrompt = NULL,
   int nComboBoxWidth = 150 
);

Parameters

  • [in] uiID
    The command ID for the button of the Help combo box.

  • [in] lpszPrompt
    A string that contains the text that the framework displays in the combo box if it is empty and not active. For example, "Enter the text here".

  • [in] nComboBoxWidth
    The width of the button for the combo box in pixels.

Remarks

The Help combo box resembles the Help combo box in the menu bar of Microsoft Word.

When you call this method with uiID set to 0, this method hides the combo box. Otherwise, this method displays the combo box automatically on the right side of your menu bar. After you call this method, call CMFCMenuBar::GetHelpCombobox to obtain a pointer to the inserted CMFCToolBarComboBoxButton object.

Requirements

Header: afxmenubar.h

See Also

Reference

CMFCMenuBar Class

Hierarchy Chart