Using an Accelerator Table Created at Run Time
The Win32 application programming interface (API) allows you to create accelerator tables at run time. The steps involved in creating and using an accelerator table at run time are as follows:
·Define the accelerators by filling an array of ACCEL structures, and then create an accelerator table by passing the array to the CreateAcceleratorTable function.
·Activate the accelerator table and process WM_COMMAND messages generated by the accelerators.
·Destroy the accelerator table before the application closes.