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.
WinQueryDlgItemTextLength (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINDIALOGS
 
SHORT WinQueryDlgItemTextLength(hwndDlg, idItem)
HWND hwndDlg;     /* handle of the dialog box */
USHORT idItem;    /* dialog-item identifier   */
 
The WinQueryDlgItemTextLength function retrieves the length of the dialog
item text, not including any null termination character.
 
This function sends a WM_QUERYFRAMEINFO message to the window identified by
the hwndDlg parameter.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwndDlg    Identifies the dialog box.
 
idItem     Identifies the dialog item.
 
Return Value
 
The return value is the length of the dialog item text, or zero if an error
occurred.
 
See Also
 
WinQueryDlgItemText, WM_QUERYFRAMEINFO