Link to home
Start Free TrialLog in
Avatar of Ruskialt
RuskialtFlag for Denmark

asked on

Right CView catches key messages from the CTreeView on the left, why?

I have a explorer like application with a CTreeView on the left and a CView descendant on the right. I want to pan the right view with the arrow keys, so I set up accelerators for those keys on the resources.

Trouble is that now I can't browse the tree using arrow keys, those messages are caught by the view. Why is that? Why would the view even receive messeges when the tree has focus?
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ruskialt

ASKER

And that would be ON_WM_KEYDOWN in the right views message map, right?
Avatar of AlexFM
AlexFM

Yes.
Yeh, this works much better. I'm through with accelerators, thanks Alex