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.

SelectClipRgnValueCOMPLEXREGIONERRORNULLREGIONSIMPLEREGIONMeaningNew clipping region has overlapping borders.Device context or region handle is not valid.New clipping region is empty.New clipping region has no overlapping borders.CommentsThe SelectClipRgn function assumes that the coordinates for the givenregion are specified in device units.Some printer devices support graphics at lower resolutions than textoutput to increase speed, but at the expense of quality. These devices scalecoordinates for graphics so that one graphics device point corresponds totwo or four true device points. This scaling factor affects clipping. If aregion will be used to clip graphics, its coordinates must be divided downby the scaling factor. If the region will be used to clip text, no scalingadjustment is needed. The scaling factor is determined by using theGETSCALlNGFACTOR printer escape.SelectObjectSyntaxParametersHANDLE SelectObject(hDC, hObject)function SelectObject(DC: HDC; hObject: THandle): THandle;This function selects the logical object specified by the hObject parameteras the selected object of the specified device context. The new objectreplaces the previous object of the same type. For example, if hObject is thehandle to a logical pen, the SelectObject function replaces the selectedpen with the pen specified by hObject.Selected objects are the default objects used by the CDI output functionsto draw lines, fill interiors, write text, and clip output to specific areas ofthe device surface. Although a device context can have six selected objects(pen, brush, font, bitmap, region, and logical palette), no more than oneobject of any given type can be selected at one time. SelectObject does notselect a logical palette; to select a logical palette, the application must useSelectPalette.hDChObjectHDC Identifies the device context.HANDLE Identifies the object to be selected. It may be anyone of the following, and must have been created by usingone of the following functions:Chapter 4, Functions directory481

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

Saved successfully!

Ooh no, something went wrong!