How To Manage Per-Window Accelerator Tables (82171)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
This article was previously published under Q82171 SUMMARY
In the Windows environment, an application can have several windows,
each with its own accelerator table. This article describes a simple
technique requiring very little code that an application can use to
translate and dispatch accelerator key strokes to several windows. The
technique employs two global variables, ghActiveWindow and
ghActiveAccelTable, to track the currently active window and its
accelerator table, respectively. These two variables, which are used
in the TranslateAccelerator function in the application's main message
loop, achieve the desired result.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbAcceleratorKey kbhowto kbKeyAccel kbWndw KB82171 |
---|
|