Share via


Callback Function for CDC::GrayString

OutputFunc is a placeholder for the application-supplied callback function name.

BOOL CALLBACK EXPORT OutputFunc( 
   HDC hDC, 
   LPARAM lpData, 
   int nCount  
);

Parameters

  • hDC
    Identifies a memory device context with a bitmap of at least the width and height specified by nWidth and nHeight to GrayString.

  • lpData
    Points to the character string to be drawn.

  • nCount
    Specifies the number of characters to output.

Return Value

The callback function's return value must be TRUE to indicate success; otherwise it is FALSE.

Remarks

The callback function (OutputFunc) must draw an image relative to the coordinates (0,0) rather than (x, y).

Requirements

Header: afxwin.h

See Also

Reference

CDC::GrayString

Other Resources

Structures, Styles, Callbacks, and Message Maps