13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CreateDCReturn valueCommentsIpDeviceNameIpOutputIplnitDataLPSTR Points to a null-terminated character string thatspecifies the name of the specific device to be supported(for example, Epson FX-80). The IpDeviceName parameteris used if the module supports more than one device.LPSTR Points to a null-terminated character string thatspecifies the DOS file or device name for the physicaloutput medium (file or output port).LPDEVMODE Points to a DEVMODE data structurecontaining device-specific initialization data for thedevice driver. The ExtDeviceMode retrieves this structurefilled in for a given device. The IplnitData parameter mustbe NULL if the device driver is to use the default .initialization (if any) specified by the user through theControl Panel.The return value identifies a device context for the specified device if thefunction is successful. Otherwise, it is NULL.DOS device names follow DOS conventions; an ending colon (:) isrecommended, but optional. Windows strips the terminating colon so thata device name ending with a colon is mapped to the same port as thesame name without a colon. The driver and port names must not containleading or trailing spaces.CreateDialogSyntaxHWND CreateDialog(hlnstance,lpTemplateName, hWndParent,lp DialogFunc)function (Instance: THandle; TemplateName: PChar; WndParent: HWnd;DialogFunc: TFarProc): HWnd;This function creates a modeless dialog box that has the size, style, andcontrols defined by the dialog-box template given by the IpTemplateNameparameter. The hWndParent parameter identifies the application windowthat owns the dialog box. The dialog function pointed to by theIpDialogFunc parameter processes any messages received by the dialogbox.The CreateDialog function sends a WM_INITDIALOG message to thedialog function before displaying the dialog box. This message allows thedialog function to initialize the dialog-box controls.Chapter 4, Functions directory 183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!