<< Return to Main Index

< Return to Class Index

CGXPrintDevice::CreateDeviceHandles

void CreateDeviceHandles(LPDEVNAMES pDevnames, DWORD nSizeDevnames, LPDEVMODE pDevmode, DWORD nSizeDevmode);

void CreateDeviceHandles(HGLOBAL hDN, HGLOBAL hDM);

pDevnames

Pointer to the DEVNAMES structure.

nSizeDevnames

Size of *pDevnames.

pDevmode

Pointer to the DEVMODE structure.

nSizeDevmode

Size of *pDevmode.

hDN

Handle for the memory block with the DEVNAMES structure.

hDM

Handle for the memory block with the DEVMODE structure.

Remarks

Initializes the printer settings object with the settings from the given structures.

Internally allocates memory blocks to store the printer settings and initializes these settings with the settings from the given structures.

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