Solved

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

Posted on 2004-10-19
4
232 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
if loop error 4 77
how to monitor remote shell execution on linux 9 93
substring method in java 1 79
move a line in eclipse 3 60
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This video discusses moving either the default database or any database to a new volume.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now