This example is the beginning of a function which processes the text which is displayed in the message text line.
#define INCL_WINDIALOGS #include <OS2.H> #define DID_MSGEDIT 900 void SelectMessageFromText(hwndDlg) HWND hwndDlg; { char szTemp[80]; /* First get the edit text from the string */ WinQueryDlgItemText(hwndDlg, DID_MSGEDIT, sizeof(szTemp), (PSZ)szTemp); /* . */ /* . */ }