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.
WinQueryDlgItemText (1.2)
◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINDIALOGS
USHORT WinQueryDlgItemText(hwndDlg, idItem, cchBufferMax, pszBuf);
HWND hwndDlg; /* handle of the dialog box */
USHORT idItem; /* identifies the dialog item */
SHORT cchBufferMax; /* size of the buffer */
PSZ pszBuf; /* address of the buffer */
The WinQueryDlgItemText function retrieves the text associated with the
specified dialog item.
Parameter Description
────────────────────────────────────────────────────────────────────────────
hwndDlg Identifies the dialog box.
idItem Identifies the dialog item.
cchBufferMax Specifies the maximum number of characters to place in the
buffer pointed to by the pszBuf parameter.
pszBuf Points to a buffer that receives the dialog item text.
Return Value
The return value is the length of the dialog item text, or zero if an error
occurred.
See Also
WinQueryDlgItemTextLength
♦