Solved

Messages to TreeView control, NM & TVM?

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 103
Named range not carried over 10 63
Excel Use VBA to get user's Mac Address for their computer 5 167
iSeries DB2 Query 2 95
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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…
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 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