Jump to content

SM QUERYHANDLE

From EDM2
Revision as of 23:18, 20 April 2025 by Martini (talk | contribs) (Created page with "This message returns the icon or bit-map handle of a static control. ==Syntax== <PRE> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: </PRE> ==Parameters== ;ulReserved (ULONG) - Input : Reserved value, should be 0. ;ulReserved (ULONG) - Input : Reserved value, should be 0. ==Returns== ;hbmHandle (HBITMAP) - returns : Icon or bit-map handle of the static control. ::NULLHANDLE: No ic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message returns the icon or bit-map handle of a static control.

Syntax

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

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

Parameters

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

Returns

hbmHandle (HBITMAP) - returns
Icon or bit-map handle of the static control.
NULLHANDLE: No icon or bit-map handle of the static control exists, or an error occurred.
Other: Icon or bit-map handle of the static control.

Remarks

The static control window procedure responds to this message by setting hbmHandle to the handle of the icon or bit-map of the static control.

Default Processing

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