LPrint::GetPrinterDC

#include "ltwrappr.h"

HDC LPrint::GetPrinterDC()

Gets a Windows device context to the current default printer.

Returns

Handle to the default printer device context.

NULL if there was an error.

Comments

You are responsible for releasing the device context when it is no longer needed. You can do this using the Windows function DeleteDC().

Required DLLs and Libraries

LTDIS

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:

LPrint::Print, LPrint::PrintFast, Class Members

Topics:

Raster Image Functions: Printing Images

Example

For an example, refer to LPrint::Print.