Partager via


SetDlgItemInt (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

Dialog Boxes Functions
GetDlgItemInt
SetDlgItemText
WM_SETTEXT