DrawStateProc

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.

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
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
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.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.
  Import Library: User-defined.

See Also

Painting and Drawing Overview, Painting and Drawing Functions, DrawState