Prev Next

DrawStateProc info  Overview  Group

The DrawStateProc function is an application-defined callback function that renders a complex image for the DrawState function.

BOOL CALLBACK DrawStateProc(

    HDC hdc,

// handle to device context

    LPARAM lData,

// image information

    WPARAM wData,

// more image information

    int cx,

// width of image

    int cy

// height of image

   );

Parameters

hdc
Identifies the device context to draw in. The device context is a memory device context with a bitmap selected, the dimensions of which are at least as great as those specified by the cx and cy parameters.
lData
Specifies information about the image, which the application passed to DrawState.
wData
Specifies information about the image, which the application passed to DrawState.
cx
Specifies the image width, in device units, as specified by the call to DrawState.
cy
Specifies the image height, in device units, as specified by the call to DrawState.

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

See Also

DrawState