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.

GetAtomHandleThis function retrieves a handle (relative to the local heap) of the stringthat corresponds to the atom specified by the wAtom parameter.Parameters wAtom WORD Specifies an unsigned integer that identifies the atomwhose handle is to be retrieved.Return valueThe return value identifies the given atom's string. It is zero if no suchatom exists.GetAtomNameSyntaxWORD GetAtomName(nAtom, IpBuffer, nSize)function GetAtomName(AnAtom: TAtom; Buffer: PChar; Size: Integer):Word;This function retrieves a copy of the character string associated with thenAtom parameter and places it in the buffer pointed to by the IpBufferparameter. The nSize parameter specifies the maximum size of the buffer.Parameters nAtom ATOM Identifies the character string to be retrieved.Return valueIpBuffernSizeLPSTR Points to the buffer that is to receive the characterstring.int Specifies the maximum size (in bytes) of the buffer.The return value specifies the actual number of bytes copied to the buffer.It is zero if the specified atom is not valid.GetBitmapBitsSyntaxParametersDWORD GetBitmapBits(hBitmap, dwCount, IpBits)function GetBitmapBits(Bitmap: HBitmap; Count: Longint; Bits: Pointer):Longint;This function copies the bits of the specified bitmap into the buffer that ispointed to by the IpBits parameter. The dwCount parameter specifies thenumber of bytes to be copied to the buffer. The GetObject function shouldbe used to determine the correct dwCount value for the given bitmap.hBitmapdwCountIpBitsHBITMAP Identifies the bitmap.DWORD Specifies the number of bytes to be copied.LPSTR Long pointer to the buffer that is to receive thebitmap. The bitmap is an array of bytes. The bitmap byte288Software development kit

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

Saved successfully!

Ooh no, something went wrong!