Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::SetDlgItemInt
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetDlgItemInt( int nID, UINT nValue, BOOL bSigned = TRUE );
 
  Parameter   Description
 
  <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.
 
  Remarks
 
  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.
 
  See Also
 
  CWnd::GetDlgItemInt, ::SetDlgItemInt, WM_SETTEXT
 
 
                                     -♦-