Jump to content

MM SETITEMHANDLE: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:MM_SETITEMHANDLE}} This message sets the handle of a menu item. ==Syntax== <pre> param1 USHORT usitem; Item ID.: param2 ULONG ulitemhandle; Item handle.: </pre> ==Parameters== ;usitem (USHORT) - input: Item ID. ;ulitemhandle (ULONG) - input: Item handle. ==Returns== ;rc (BOOL) - return: Success indicator. ::TRUE: Successful completion. ::FALSE: Error occurred. ==Remarks== The menu control window procedure responds to this m..."
 
(No difference)

Latest revision as of 02:34, 28 April 2025

This message sets the handle of a menu item.

Syntax

param1
USHORT usitem;       /* Item ID. */

param2
ULONG ulitemhandle; /* Item handle. */

Parameters

usitem (USHORT) - input
Item ID.
ulitemhandle (ULONG) - input
Item handle.

Returns

rc (BOOL) - return
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred.

Remarks

The menu control window procedure responds to this message by setting the handle of the menu item. This is used to set a handle for menu items that have a style of MIS_BITMAP or MIS_OWNERDRAW.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.