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.
WinSetDlgItemText (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINDIALOGS
 
BOOL WinSetDlgItemText(hwndDlg, idItem, pszText);
HWND hwndDlg;     /* handle of the dialog box */
USHORT idItem;    /* dialog-item identifier   */
PSZ pszText;      /* text to set              */
 
The WinSetDlgItemText function sets the text in a dialog item. It is
equivalent to the following:
 
WinSetWindowText(WinWindowFromID(hwndDlg, idItem), pszText);
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwndDlg    Identifies a dialog window.
 
idItem     Identifies the identifier of the dialog item.
 
pszText    Points to a null-terminated string that contains the text to be
           set for the dialog item.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinSetWindowText, WinWindowFromID