Upravit

Sdílet prostřednictvím


DRAWSTATEPROC callback function (winuser.h)

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(
  [in] HDC hdc,
  [in] LPARAM lData,
  [in] WPARAM wData,
  [in] int cx,
  [in] int cy
)
{...}

Parameters

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

[in] lData

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

[in] wData

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

[in] cx

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

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

Requirement Value
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