void SetDlgItemInt( int nID, UINT nValue, BOOL bSigned = TRUE );
nID
Specifies the integer ID of the control to be modified.
nValue
Specifies the value to be set.
bSigned
Specifies whether or not the integer value is signed.
Sets the text of a control to the string that represents the integer value given by nValue. The SetDlgItemInt member function converts nValue to a string that consists of decimal digits, and then copies the string to the control.
If bSigned is TRUE, nValue is assumed to be signed. If nValue is signed and less than 0, the function places a minus sign before the first digit in the string.
CWnd::GetDlgItemInt, ::SetDlgItemInt, WM_SETTEXT