win12.hlp (Table of Contents; Topic list)
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