OutputProc

The OutputProc function is an application-defined callback function used with the GrayString function. It is used to draw a string. The GRAYSTRINGPROC type defines a pointer to this callback function. OutputProc is a placeholder for the application-defined or library-defined function name.

BOOL CALLBACK OutputProc(
  HDC hdc,        // handle to device context
  LPARAM lpData,  // pointer to string to be drawn
  int cchData     // length of string to be drawn
);
 

Parameters

hdc
Handle to a device context with a bitmap of at least the width and height specified by the nWidth and nHeight parameters passed to GrayString.
lpData
Pointer to the string to be drawn.
cchData
Specifies the length, in characters, of the string.

Return Values

If it succeeds, the callback function should return TRUE.

If the function fails, the return value is FALSE.

Remarks

The callback function must draw an image relative to the coordinates (0,0).

QuickInfo

  Windows NT: Requires version 3.1 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, GrayString