Solved

Control Notification for CTreeCtrl in a Dialog.

Posted on 1997-09-19
2
499 Views
Last Modified: 2013-11-19
We have an application which has a CTreeCtrl on a CDialogBar.

The problem that we are facing is specific to Windows NT.
On WindowsNT we are not getting the following notification messages:It works fine on Windows95.

1) TVN_BEGINDRAG & TVN_ENDDRAG for Drag and Drop operations of tree items.

2) TVN_BEGINLABELEDIT & TVN_ENDLABELEDIT for name editing of the tree items.

I REPEAT, our application works fine on Windows95, but on NT it simply does NOTHING.

We need a solution to this problem ASAP.
0
Comment
Question by:degu
2 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1306589
I assume that your tree control is at least being created. Have you tried using Spy++ to make sure the parent window is getting WM_NOTIFY messages under NT? Which version of NT are you using?

Have you tried using a CTreeCtrl that is NOT in a CDialogBar and how does that affect the behavior?
0
 
LVL 8

Accepted Solution

by:
gelbert earned 200 total points
ID: 1306590
Call this function on your TreeCtrl to  make sure that drag&drop enabled
      ModifyStyle( TVS_DISABLEDRAGDROP, 0);

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries DB2 Query 2 89
notReplace  challenge 53 115
while loop over for loop 7 92
Problem to event 3 75
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 …
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…
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 shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

932 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

15 Experts available now in Live!

Get 1:1 Help Now