BOOL FAR PASCAL __export OutputFunc( HDC hDC, DWORD lpData,
int nCount );
OutputFunc is a placeholder for the application-supplied callback function name. The actual name must be exported as described in the “Remarks” above. The callback function (OutputFunc) must draw an image relative to the coordinates (0,0) rather than (x, y).
Parameter | Description |
hDC | Identifies a memory device context with a bitmap of at least the width and height specified by nWidth and nHeight to GrayString, respectively. |
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 nonzero to indicate success. Otherwise, it is 0.
TRUE if the string is drawn, or FALSE if either the TextOut function or the application-supplied output function returned FALSE, or there was insufficient memory to create a memory bitmap for dimming.
::GetSysColor, CDC::SetTextColor, CDC::TextOut, ::GrayString