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


BOOL CALLBACK DrawStateProc(
  _In_ HDC    hdc,
  _In_ LPARAM lData,
  _In_ WPARAM wData,
  _In_ int    cx,
  _In_ int    cy
);

Parameters

hdc [in]

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 [in]

Specifies information about the image, which the application passed to DrawState.

wData [in]

Specifies information about the image, which the application passed to DrawState.

cx [in]

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

cy [in]

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]

Header

Winuser.h (include Windows.h)

See also

Painting and Drawing Overview
Painting and Drawing Functions
DrawState

 

 

Show: