Microsoft KB Archive/49681
INF: PM Accelerators Sample Program PSS ID Number: Q49681 Article last modified on 09-09-1991 PSS database name: P_PresMan
There is a sample program in the Software/Data Library named ACCEL that shows the various uses of accelerators. This application includes methods for creating accelerator tables in the .RC file or on the fly that handle the various combinations of CAPS LOCK, CTRL, SHIFT, and ALT. To run the program, type “a” or F1 and any combination of CAPS LOCK, CTRL, SHIFT, and ALT to see how the accelerators are trapped.
The RC version of the code is preferred because the original copy of the table is stored in a discardable resource segment instead of in the application’s data segment.
The relevant portions of the code are in APP.RC, APP.C, and WNDPROC.C. Search for hOurAccel and USE_RC_ACCEL.
ACCEL has been tested on both versions 1.1 and 1.21 of Presentation Manager (PM).
ACCEL can be found in the Software/Data Library by searching on the word ACCEL, the Q number of this article, or S12433. ACCEL was archived using the PKware file-compression utility.
Copyright Microsoft Corporation 1991.