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.

GetObjectthe number of bytes of data specified by the nCount parameter to thebuffer pointed to by the IpObject parameter. The function retrieves datastructures of the LOG PEN, LOGBRUSH, LOG FONT, or BITMAP type, or aninteger, depending on the logical object. The buffer must be sufficientlylarge to receive the data.If hObject specifies a bitmap, the function returns only the width, height,and color format information of the bitmap. The actual bits must beretrieved by using the GetBitmapBits function.If hObject specifies a logical palette, it retrieves a two-byte"value thatspecifies the number of entries in the palette; it does not retrieve the entireLOGPALETTE data structure that defines the palette. To get informationon palette entries, an application must call the GetPaletteEntries function.Parameters hObject HANDLE Identifies a logical pen, brush, font, bitmap, orpalette.Return valuenCountIpObjectint Specifies the number of bytes to be copied to the buffer.LPSTR Points to the buffer that is to receive the information.The return value specifies the actual number of bytes retrieved. It is zero ifan error occurs.GetPaletteEntries 3.0SyntaxWORD GetPaletteEntriesChPalette, wStartIndex, wNumEntries,IpPaletteEntries)function GetPaletteEntriesCPalette: HPalette; StartIndex, NumEntries:Word; var PaletteEntries): Word;This function retrieves a range of palette entries in a logical palette.Parameters hPalette HPALETTE Identifies the logical palette.wStartIndexwNumEntriesIpPaletteEntriesWORD Specifies the first entry in the logical palette tobe retrieved.WORD Specifies the number of entries in the logicalpalette to be retrieved.LPPALETTEENTRY Points to an array ofPALETTEENTRY data structures to receive the paletteentries. The array must contain at least as many datastructures as specified by the wNumEntries parameter.332Software development kit

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

Saved successfully!

Ooh no, something went wrong!