SetDlgItemInt (Compact 2013)

3/28/2014

This function sets the text of a control in a dialog box to the string representation of a specified integer value.

Syntax

BOOL SetDlgItemInt( 
  HWND hDlg, 
  int nIDDlgItem, 
  UINT uValue, 
  BOOL bSigned
); 

Parameters

  • hDlg
    [in] Handle to the dialog box that contains the control.
  • nIDDlgItem
    [in] Specifies the control to be changed.
  • uValue
    [in] Specifies the integer value, assumed to be signed, that is used to generate the item text.
  • bSigned
    [in] Ignored; set to zero

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

To set the new text, this function sends a WM_SETTEXT message to the specified control.

Requirements

Header

winuser.h

Library

Dlgmgr.lib

See Also

Reference

Dialog Box Functions
GetDlgItemInt
SetDlgItemText
WM_SETTEXT