This example uses the WinSetAccelTable call to remove any accelerator table in effect for the window.
#define INCL_WIN #include <OS2.H> HWND hwndFrame, hwndClient; HAB hab; HACCEL haccel; hwndFrame = WinQueryWindow(hwndClient, QW_PARENT); /* get handle of parent, */ /* which is frame window. */ WinSetAccelTable(hab, (HACCEL)0, /* remove any accelerator table in */ /* effect. */ hwndFrame);