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.

GetNearestColorGetNearestColorSyntaxParametersReturn valueDWORD GetNearestColor(hDC, crColor)function GetNearestColor(DC: HDC; Color: TColorRef): TColorRef;This function returns the closest logical color to a specified logical colorthe given device can represent.hDCcrColorHOC Identifies the device context.COLORREF Specifies the color to be matched.The return value specifies an RGB color value that names the solid colorclosest to the crColor value that the device can represent.GetNearestPalettelndex 3.0SyntaxParametersReturn valueWORD GetNearestPaletteIndex(hPalette, crColor)function GetNearestPaletteIndex(Palette: HPalette; Color: TColorRef}:Word;This function returns the index of the entry in a logical palette which mostclosely matches a color value.hPalettecrColorHPALETTE Identifies the logical palette.COLORREF Specifies the color to be matched.The return value is the index of an entry in a logical palette. The entrycontains the color which most nearly matches the specified color.GetNextDlgGroupltemSyntaxHWND GetNextDlgGroupltem(hDlg, hCtl, bPrevious)function GetNextDlgGroupltem(Dlg, Ctrl: HWnd; Previous: Bool}:HWnd;This function searches for the next (or previous) control within a group ofcontrols in the dialog box identified by the hDlg parameter. A group ofcontrols consists of one or more controls with WS_GROUP style.Parameters hDlg HWNO Identifies the dialog box being searched.Chapter 4, Functions directory 329

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

Saved successfully!

Ooh no, something went wrong!