LAnnotation::Print

#include "ltwrappr.h"

virtual L_INT LAnnotation::Print(hDC, prcBounds)

HDC hDC;

/* handle to the device context */

LPRECT prcBounds;

/* pointer to a Windows RECT structure */

Prints the annotation object, fitting it to a bounding rectangle in the specified device context.

Parameter

Description

hDC

Handle to the device context (DC) where the annotation is to print. The mapping mode of the device context must be MM_TEXT.

prcBounds

Pointer to the Windows RECT structure that defines the bounding rectangle where this function will fit the annotation for printing. To maintain the aspect ratio, this rectangle should have the same proportions as the annotation object that you are printing.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LTANN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Topics:

Annotation Functions: Input and Output

Example

For an example, refer to LAnnotation::CutToClipboard.