This function converts the text of a dialog item into an integer value.
#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 converted. */ PSHORT psResult; /* Integer value resulting from the conversion. */ BOOL fSigned; /* Sign indicator. */ BOOL rc; /* Success indicator. */ rc = WinQueryDlgItemShort(hwndDlg, idItem, psResult, fSigned);