ATL Composite Control/keyboard events
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have an ATL(3.0) project that contains a composite control. I need to trap all the events that occur when the control has focus. I though I had accomplished this and then discovered the keyboard events( WM_KEYDOWN, etc) are missing. I investigated the problem and was advised to override the pretranslateaccelerator routine from the base class. I did so but found it never gets called with the keyboard events. Any help or examples would be appreciated. If you need to re-create the problem, create an ATL project with a composite control and then try to capture pressing and key on the keyboard. thanks in advance:)