Guidelines
- Write your class so it inherits from MKeyEventHandler.
- Override the KeyDown, KeyUp, ModifierKeyDown, and ModifierKeyUp member functions to handle keyboard events. Return true to prevent other objects from receiving the keyboard event. Return false to allow the event to propagate to other objects.
- Use RegisterSimpleTarget(*(GetEventReceiver())) to start receiving keyboard events.
- Use DeregisterSimpleTarget(*(GetEventReceiver())) to stop receiving keyboard events.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker