13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ExtOeviceModeWrites the printer driver's currentprint settings to the printerenvironment and the WIN.INIinitialization file.Return value ~~t~~~~d~!t:r::;::::: ::~~:;; ;::r;t:i~~~:Sp~~t~rZ~~~!~e (~~g:~initialization data. If the function displays the initialization dialog box, thereturn value is either IDOK or IDCANCEL, depending on which buttonthe user selected. If the function does not display the dialog box and wassuccessful, the return value is IDOK. The return value is less than zero ifthe function failed.CommentsThe ExtOeviceMode function is actually part of the printer's device driver,and not part of CD!. To call this function, the application must include theDRIVINT.H file, load the printer device driver, and retrieve the address ofthe function by using the GetProc-Address function. The application canthen use the address to set up the printer.An application can set the wMode parameter to DM_COPY to obtain aOEVMOOE data structure filled in with the printer driver's initializationdata. The application can then pass this data structure to the CreateOCfunction to set a private environment for the printer device context.ExtFloodFili 3.0SyntaxParametersBOOL ExtFloodFill(hDC, X, Y, crColor, wFillType)function ExtFloodFill(DC: HDC; X, Y: Integer; Color: TColorRef; FillType:Word): Bool;This function fills an area of the display surface with the current brush.If wFillType is set to FLOODFILLBORDER, the area is assumed to becompletely bounded by the color specified by the crColor parameter. TheExtFloodFiII function begins at the point specified by the X and Yparameters and fills in all directions to the color boundary.If wFillType is set to FLOODFILLSURFACE, the ExtFloodFiII functionbegins at the point specified by X and Y and continues in all directions,filling all adjacent areas containing the color specified by crColor.hDCXHOC Identifies the device context.int Specifies the logical x-coordinate of the point wherefilling begins.Chapter 4, Functions directory273

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

Saved successfully!

Ooh no, something went wrong!