win12.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.
WinSetDlgItemShort (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINDIALOGS
 
BOOL WinSetDlgItemShort(hwndDlg, idItem, usValue, fSigned)
HWND hwndDlg;      /* handle of the dialog box */
USHORT idItem;     /* dialog-item identifier   */
USHORT usValue;    /* value to set             */
BOOL fSigned;      /* signed/unsigned flag     */
 
The WinSetDlgItemShort function sets the text of a dialog-box item to the
string representation of a specified integer value. The item is identified
by its identifier. The text produced is always an ASCII string.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwndDlg    Identifies the dialog-box window.
 
idItem     Identifies the dialog item that is changed.
 
usValue    Specifies the integer value used to generate the item text.
 
fSigned    Specifies whether the usValue parameter is signed or unsigned. If
           this parameter is TRUE, usValue is signed. If it is FALSE,
           usValue is unsigned.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinQueryDlgItemShort