Jump to content

HM ACTIONBAR COMMAND: Difference between revisions

From EDM2
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..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:HM_ACTIONBAR_COMMAND}}
{{DISPLAYTITLE:HM_ACTIONBAR_COMMAND}}
This message is sent to the current active application window by the Help
Manager to notify the application when the user selects a tailored action bar item.


==Syntax==
<pre>
param1
USHORT idCommand; /* Identity of the action bar item that was selected. */


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.  
param2
 
ULONG ulReserved; /* Reserved value, should be 0. */
</pre>


==Parameters==
==Parameters==
;usCmd : Low word of mp1. Specifies the command value.
;idCommand ([[USHORT]]) - input: Identity of the action bar item that was selected.
;ulReserved ([[ULONG]]) - input: Reserved value, should be 0.


==Returns==
==Returns==
An application should return zero if it processes this message.
;ulReserved ([[ULONG]]) - return: Reserved value, should be 0.
 
==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 */


==Related Functions==
==Default Processing==
* [[WinCreateHelplnstance]]
None.


[[Category:Messages]]
[[Category:Messages]]

Latest revision as of 03:49, 28 April 2025

This message is sent to the current active application window by the Help Manager to notify the application when the user selects a tailored action bar item.

Syntax

param1
USHORT idCommand; /* Identity of the action bar item that was selected. */

param2
ULONG ulReserved; /* Reserved value, should be 0. */

Parameters

idCommand (USHORT) - input
Identity of the action bar item that was selected.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

ulReserved (ULONG) - return
Reserved value, should be 0.

Default Processing

None.