Solved

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

Posted on 2004-10-19
4
240 Views
Last Modified: 2013-11-20
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
Comment
Question by:Ruskialt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
ID: 12345201
Handle keyboard messages in the right view instead of using accelerators. Accelerator works on application level preventing left view from getting keyboard messages.
0
 
LVL 2

Author Comment

by:Ruskialt
ID: 12345221
And that would be ON_WM_KEYDOWN in the right views message map, right?
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 12345226
Yes.
0
 
LVL 2

Author Comment

by:Ruskialt
ID: 12345257
Yeh, this works much better. I'm through with accelerators, thanks Alex
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Installing Microsoft R server on REDHAT or SUSE Linux 4 162
Add content to output file 4 72
notReplace  challenge 53 153
Problem to open Excel file 15 266
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question