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?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

AlexFMConnect With a Mentor Commented:
Handle keyboard messages in the right view instead of using accelerators. Accelerator works on application level preventing left view from getting keyboard messages.
RuskialtAuthor Commented:
And that would be ON_WM_KEYDOWN in the right views message map, right?
RuskialtAuthor Commented:
Yeh, this works much better. I'm through with accelerators, thanks Alex
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.