?
Solved

Control Notification for CTreeCtrl in a Dialog.

Posted on 1997-09-19
2
Medium Priority
?
551 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 400 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

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

764 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