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.

SetDIBitsToDeviceReturn valueCommentsIpBitsIpBitslnfowUsageLPSTR Points to the DIB bits that are stored as an array ofbytes.LPBITMAPINFO Points to a BITMAPINFO data structure thatcontains information about the DIB.WORD Specifies whether the bmiColors[ ] fields of theIpBitslnfo parameter contain explicit RGB values or indexesinto the currently realized logical palette. The wUsageparameter must be one of the following values:ValueDIB_PAL_COLORSDIB_RGB_COLORSThe return value is the number of scan lines set.MeaningThe color table consists of anarray of 16-bit indexes into thecurrently realized logical palette.The color table contains literalRGB values.All coordinates are device coordinates (that is, the coordinates of the DIB)except destX and destY, which are logical coordinates.The origin for device-independent bitmaps is the bottom-left corner of theDIB, not the top-left corner, which is the origin when the mapping modeis MM_TEXT. This function also accepts a device-independent bitmapspecification formatted for Microsoft OS/2 Presentation Manager versions1.1 and 1.2 if the IpBitslnfo parameter points to a BITMAPCOREINFO datastructure.SetDlgltemlntSyntaxvoid SetDlgItemInt(hDlg, nIDDlgItem, wValue, bSigned)procedure SetDlgItemInt(Dlg: HWnd; IDDlgItem: Integer; Value: Word;Signed: Bool);This function sets the text of a control in the given dialog box to the stringthat represents the integer value given by the wValue parameter. TheSetDlgltemlnt function converts wValue to a string that consists of decimaldigits, and then copies the string to the control. If the bSigned parameter isnonzero, wValue is assumed to be signed. If wValue is signed and less thanzero, the function places a minus sign before the first digit in the string.SetDlgltemlnt sends a WM_SETTEXT message to the given control.Parameters hDlg HWND Identifies the dialog box that contains the control.Chapter 4, Functions directory 499

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

Saved successfully!

Ooh no, something went wrong!