This function queries a text string in a dialog item.

#define INCL_WINDIALOGS /* Or use INCL_WIN, INCL_PM, Also in COMMON section */
#include <os2.h>

HWND     hwndDlg;   /*  Parent-window handle. */
ULONG    idItem;    /*  Identity of the child window whose text is to be queried. */
LONG     lMaxText;  /*  Length of pszText. */
PSZ      pszText;   /*  Output string. */
ULONG    ulRetLen;  /*  Actual number of characters returned. */

ulRetLen = WinQueryDlgItemText(hwndDlg, idItem,
             lMaxText, pszText);


[Back] [Next]