Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Sets the keytips for all ribbon elements that have the specified command ID.

BOOL SetElementKeys(
   UINT uiCmdID,
   LPCTSTR lpszKeys,
   LPCTSTR lpszMenuKeys = NULL 

[in] uiCmdID

The command ID of a ribbon element.

[in] lpszKeys

The keytip.

[in] lpszMenuKeys

The menu keytip.

TRUE if the keytips of at least one ribbon element are set; otherwise FALSE.

The optional menu keytip is for ribbon elements with a split button that opens a popup menu.

Header: afxribbonbar.h

© 2015 Microsoft