CGXPrintDevice::CopyDeviceHandles

void CopyDeviceHandles(HGLOBAL& hDN, HGLOBAL& hDM);

hDN

This handle will be set to the new memory block with the DEVNAMES structure.

hDM

This handle will be set to the new memory block with the DEVMODE structure.

Remarks

Allocates and returns memory blocks initialized with the settings stored in the printer settings object.

Allocates memory blocks for the DEVMODE and DEVNAMES structures and initializes them with the settings stored in the CGXPrintDevice object.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the CGXPrintDevice::ImplementPrintDevice method from within the control factory class' InitializeApplicationComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method performs no action.

END Control-Factory Specific

CGXPrintDevice

 Class Overview |  Class Members