Solved

Control Notification for CTreeCtrl in a Dialog.

Posted on 1997-09-19
2
538 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: 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

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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 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