Solved

Messages to TreeView control, NM & TVM?

Posted on 1998-11-30
2
348 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

13 Experts available now in Live!

Get 1:1 Help Now