void CBCGPRibbonMainPanel::EnableCommandSearch | ( | BOOL | bEnable, |
LPCTSTR | lpszLabel, | ||
LPCTSTR | lpszKeyTip, | ||
int | nWidth = 0 , |
||
BOOL | bHideDisabled = FALSE |
||
) |
Shows or hides command search box at the bottom of Main Ribbon Panel.
Use this method to display or hide command search box at the buttom of Main Ribbon Panel.
When the user types a part of command text in the box, the list of matching commands is displayed on the Main Panel.
bEnable | TRUE - display the search box, FALSE - hide the search box. |
lpszLabel | Default text (prompt) displayed within search box |
lpszKeyTip | Search box key tip. |
nWidth | Desired search box width. |
bHideDisabled | TRUE - disabled commands are not displayed in the search result; FALSE - disabled commands are added to the search results. |