SM QUERYHANDLE
Appearance
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.