How to catch keyboard events for treeview widget
Hello,
I would like to know how to catch keyboard events for a treeview widget (kTreeViewWidgetBoss).
I have added an IID_IEVENTHANDLER to the Class (in the Boss class definitions in the resource file), but
that EH responds only to the LButtonDown event, it does not respond to the KeyDown, KeyCmd, KeyUp events and
I don't understand why... It may be because the widget does not have focus, but I don't know how to set focus to the widget either.
My event handler class inherits from CEventHandler.
I also tried to attach IID_IEVENTHANDLER to the dialog (that contains the treeview) observer, but that does not work either.
So what do I need to do in order to be able to listen to keyboard events from the treeview widget?
Thanks in advance!!
Regards,
Jan