Solved

Control Notification for CTreeCtrl in a Dialog.

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
centeredAverage challenge 8 121
sum13 challenge 24 77
sum67 challenge 35 89
lucky13 challenge 11 112
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…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

18 Experts available now in Live!

Get 1:1 Help Now