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
);
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
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.
Painting and Drawing Overview, Painting and Drawing Functions, DrawState