OutputProc

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

The OutputProc function is an application-defined callback function that draws a string as a result of a call to the GrayString function.

Parameters

hdc

Identifies a device context with a bitmap of at least the width and height specified by the nWidth and nHeight parameters passed to the GrayString function.

lpData

Points to the string to be drawn.

cchData

Specifies the length (in characters) of the string.

Return Value

The callback function should return TRUE to indicate success; otherwise it should return FALSE.

Comments

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

OutputProc is a placeholder for the application-supplied function name. The actual name must be exported by including it in an EXPORTS statement in the application's module-definition file.

See Also

GrayString