This function sets the window-accelerator, or queue-accelerator table.

#define INCL_WINACCELERATORS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HAB       hab;          /*  Anchor-block handle. */
HACCEL    haccelAccel;  /*  Accelerator-table handle. */
HWND      hwndFrame;    /*  Frame-window handle. */
BOOL      rc;           /*  Success indicator. */

rc = WinSetAccelTable(hab, haccelAccel, hwndFrame);


[Back] [Next]