Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OutputProc

OutputProc callback function

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.

Syntax


BOOL CALLBACK OutputProc(
  _In_ HDC    hdc,
  _In_ LPARAM lpData,
  _In_ int    cchData
);

Parameters

hdc [in]

A 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 [in]

A pointer to the string to be drawn.

cchData [in]

The length, in characters, of the string.

Return value

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Painting and Drawing Overview
Painting and Drawing Functions
GrayString

 

 

Community Additions

ADD
Show:
© 2015 Microsoft