Jump to content

CM QUERYDRAGIMAGE

From EDM2
Revision as of 01:25, 21 April 2025 by Martini (talk | contribs) (Created page with "This message returns a handle to the icon or bit map for the record in the current view. ==Syntax== <PRE> param1 PRECORDCORE pRecord; Pointer to the RECORDCORE structure that is to be queried for the image.: param2 ULONG ulReserved; Reserved value, should be 0.: </PRE> ;Note:; If the CCS_MINIRECORDCORE style bit is specified when a container is created, then MINIRECORDCORE should be used instead of RECORDCORE, and PMINIRECORDCORE should be used...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message returns a handle to the icon or bit map for the record in the current view.

Syntax

param1
PRECORDCORE pRecord;   /* Pointer to the RECORDCORE structure that is to be queried for the image. */

param2
ULONG ulReserved;      /* Reserved value, should be 0. */
Note
; If the CCS_MINIRECORDCORE style bit is specified when a container is created, then MINIRECORDCORE should be used instead of RECORDCORE, and PMINIRECORDCORE should be used instead of PRECORDCORE in all applicable data structures and messages.

Parameters

pRecord (PRECORDCORE) - Input
Pointer to the RECORDCORE structure that is to be queried for the image.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

hImage (LHANDLE) - returns
Image handle.
NULLHANDLE: If no image is defined, NULLHANDLE is returned.
Other: Handle of an icon or bit map.
If the CA_DRAWICON attribute and the CV_MINI style bit are specified, the RECORDCORE structure's hptrMiniIcon field is returned.
If the CA_DRAWICON attribute is specified without the CV_MINI style bit, the RECORDCORE structure's hptrIcon field is returned.
If the CA_DRAWBITMAP attribute and the CV_MINI style bit are specified, the RECORDCORE structure's hbmMiniBitmap field is returned.
If the CA_DRAWBITMAP attribute is specified without the CV_MINI style bit, the RECORDCORE structure's hbmBitmap field is returned.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it other than to return NULLHANDLE.