DRAWSTATEPROC callback function

The DrawStateProc function is an application-defined callback function that renders a complex image for the DrawState function. The DRAWSTATEPROC type defines a pointer to this callback function. DrawStateProc is a placeholder for the application-defined function name.

Syntax

DRAWSTATEPROC Drawstateproc;

BOOL Drawstateproc(
  HDC hdc,
  LPARAM lData,
  WPARAM wData,
  int cx,
  int cy
)
{...}

Parameters

hdc

A handle to 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

The image width, in device units, as specified by the call to DrawState.

cy

The image height, in device units, as specified by the call to DrawState.

Return Value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)

See Also

DrawState

Painting and Drawing Functions

Painting and Drawing Overview