Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
has77  challenge 9 83
Unix Command -- Challenging  question 7 88
firstChar challenge 13 115
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 94
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

776 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