Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-10-19
4
Medium Priority
?
252 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 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

876 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