• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

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?
0
Ruskialt
Asked:
Ruskialt
  • 2
  • 2
1 Solution
 
AlexFMCommented:
Handle keyboard messages in the right view instead of using accelerators. Accelerator works on application level preventing left view from getting keyboard messages.
0
 
RuskialtAuthor Commented:
And that would be ON_WM_KEYDOWN in the right views message map, right?
0
 
AlexFMCommented:
Yes.
0
 
RuskialtAuthor Commented:
Yeh, this works much better. I'm through with accelerators, thanks Alex
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now