<< Return to Main Index

< Return to Class Index

CGXPrintDevice Class Members

Construction

CGXPrintDevice Constructs an object for printer settings.

Operations

operator= Copies the settings from another printer settings. object.
CreateDeviceHandles Initializes the printer settings object with the settings from the given structures.
CompareDeviceHandles Compares the internal stored printer settings with the settings from the given structures. Calling this method is useful for determining whether the internal settings are equal to the default printer settings or whether the settings have changed.
CopyDeviceHandles Allocates and returns memory blocks initialized with the settings stored in the printer settings object.
DestroyDeviceHandles Frees the print device object.
GetDefaults Determines the default printer settings.
GetDeviceInfo Allocates and returns pointers to DEVNAMES and DEVMODE structures initialized with the settings stored in the printer settings object.
GetPrintDC Returns a device handle for the current printer settings. You may assign this device handle as an attribute dc in your views OnPrepareDC method if you want to implement WYSIWYG functionality.
NeedDeviceHandles Call this method when you want to initialize the printer setting objects before using it. If the object was not yet initialized, this method will determine default printer settings.
ResetPrintDC Deletes/Resets the device handle for the printer.

Control Factory

ImplementPrintDevice Makes concrete implementation for storing printer settings into grid parameter object available to your application.

CGXPrintDevice

Class Overview