This function loads an accelerator table.

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

HAB        hab;           /*  Anchor-block handle. */
HMODULE    Resource;      /*  Resource identity containing the accelerator table. */
ULONG      idAccelTable;  /*  Accelerator-table identifier, within the resource file. */
HACCEL     haccelAccel;   /*  Accelerator-table handle. */

haccelAccel = WinLoadAccelTable(hab, Resource,
                idAccelTable);


[Back] [Next]