Solved

Messages to TreeView control, NM & TVM?

Posted on 1998-11-30
2
378 Views
Last Modified: 2013-11-20
Can anyone tell me the difference between the messages that call the class-wizard functions OnSelChangedMyTree and OnDblClickMyTree for a Tree View control. Despite apparently being called by the message (NM_DBLCLICKED and TVM_SELCHANGED) with the same parameters, my operations  with a pointer to the TreeCtrl object will not work on the DBLClick fundtion yet they will on the SelChanged... ??
0
Comment
Question by:rarebear
[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 Comments
 
LVL 3

Expert Comment

by:plaroche
ID: 1325499
Could you elaborate a little, tell us what doesn't work, show us the code....
0
 
LVL 4

Accepted Solution

by:
nil_dib earned 70 total points
ID: 1325500
The difference is that NM_DBLCLICKED is sended when a double click occurs on
a the item and TVM_SELCHANGED indicates when the selected item changed. This
can happen not only by clicking once/twice with the mouse but changing the selected
item with the arrow keys.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 85
Installing Microsoft R server on REDHAT or SUSE Linux 4 162
deburging in oracle form 12 120
Change owner from userA to server Local Administrators 7 74
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.

759 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