This function converts an integer value into the text of 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 changed. */ USHORT usValue; /* Integer value used to generate the dialog item text. */ BOOL fSigned; /* Sign indicator. */ BOOL rc; /* Success indicator. */ rc = WinSetDlgItemShort(hwndDlg, idItem, usValue, fSigned);