HM ACTIONBAR COMMAND: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:HM_ACTIONBAR_COMMAND}} The HM_ACTIONBAR_COMMAND message is sent when the user chooses a command from an application-supplied menu in the help window. The application should carry out the command identified by the usCmd parameter. ==Parameters== ;usCmd : Low word of mp1. Specifies the command value. ==Returns== An application should return zero if it processes this message. ==Remarks== Applications can replace the menu in a help window by specifying..." |
|||
Line 20: | Line 20: | ||
==Related Functions== | ==Related Functions== | ||
* [[ | * [[WinCreateHelpInstance]] | ||
[[Category:Messages]] | [[Category:Messages]] |
Revision as of 03:46, 28 April 2025
The HM_ACTIONBAR_COMMAND message is sent when the user chooses a command from an application-supplied menu in the help window. The application should carry out the command identified by the usCmd parameter.
Parameters
- usCmd
- Low word of mp1. Specifies the command value.
Returns
An application should return zero if it processes this message.
Remarks
Applications can replace the menu in a help window by specifying a menu ID in the HELPINIT structure used when the help instance is created by using the WinCreateHelpInstance function. If an application replaces the menu, it receives the HM_ACTIONBAR_COMMAND message when the user chooses a command from the menu. Application-supplied menus should have command values in the range Ox7FOO through Ox7FFF.
Example Code
HM_ACTIONBAR_COMMAND usCmd = (USHORT) SHORT1FROMMP(mp1); /* command value */