SetDlgItemInt

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

GetDlgItemInt
SetDlgItemText
WM_SETTEXT
Dialog Boxes Functions