HM ACTIONBAR COMMAND: Difference between revisions
Appearance
No edit summary |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:HM_ACTIONBAR_COMMAND}} | {{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. | 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== | ==Parameters== | ||
;usCmd : Low word of mp1. Specifies the command value. | ;'''usCmd - input''' : Low word of mp1. Specifies the command value. | ||
==Returns== | ==Returns== | ||
Line 13: | Line 10: | ||
==Remarks== | ==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. | 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== | ==Example Code== |
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 - input
- 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 */