Solved

Control Notification for CTreeCtrl in a Dialog.

Posted on 1997-09-19
2
531 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

Industry Leaders: 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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 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