void SetDlgItemInt(hDlg,nIDDlgItem,wValue,bSigned)
This function sets the text of a control in the given dialog box to the string that represents the integer value given by the wValue parameter. The SetDlgItemInt function converts wValue to a string that consists of decimal digits, and then copies the string to the control. If the bSigned parameter is nonzero, wValue is assumed to be signed. If wValue is signed and less than zero, the function places a minus sign before the first digit in the string.
SetDlgItemInt sends a WM_SETTEXT message to the given control.
Parameter | Type/Description |
hDlg | HWND Identifies the dialog box that contains the control. | |
nIDDlgItem | int Specifies the control to be modified. | |
wValue | WORD Specifies the value to be set. | |
bSigned | BOOL Specifies whether or not the integer value is signed. |
None.