This function sets the text of a control in a dialog box to the string representation of a specified integer value.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
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 Values
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.
See Also