This function translates a WM_CHAR message.
#define INCL_WINACCELERATORS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ HWND hwnd; /* Destination window. */ HACCEL haccelAccel; /* Accelerator-table handle. */ PQMSG pQmsg; /* Message to be translated. */ BOOL rc; /* Success indicator. */ rc = WinTranslateAccel(hab, hwnd, haccelAccel, pQmsg);