GrayStringProc

2.x

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

The GrayStringProc 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 cx and cy parameters passed to the GrayString function.

lpData

Points to the string to be drawn.

cch

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).

GrayStringProc is a placeholder for the application-defined function name. The actual name must be exported by including it in an EXPORTS statement in the application's module-definition (.DEF) file.

See Also

GrayString