Solved

implementing a CTreeCtrl

Posted on 1999-01-08
1
388 Views
Last Modified: 2013-11-20
I'm having problems with giving my tree nides images.
anyone has a sample code of implementing a CTreeCtrl object?
0
Comment
Question by:skarj
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
Comment Utility
Goto support.microsoft.com and search for Q119591
This will tell you how you can download the sample below


SAMPLE: MFCDRAG Implements Drag&Drop Between CListCtrl & CTree
Last reviewed: July 2, 1997
Article ID: Q148738  
The information in this article applies to:
The Microsoft Foundation Classes (MFC) included with: - Microsoft Visual C++, 32-bit Edition, versions 4.0, 4.1, 5.0


SUMMARY
MFCDRAG shows how to implement drag and drop between a CListCtrl and CTreeCtrl. The program creates a splitter window containing four panes. Two panes contain CListCtrls and the other two contain CTreeCtrls. You can drag an item from any window to another. For example, dragging can occur between the following panes:


   CListCtrl to CTreeCtrl
   CListCtrl to CListCtrl
   CTreeCtrl to CListCtrl
   CTreeCtrl to CTreeCtrl

Code marked with the comment "Added 7/29/96" was added to support a change in the CreateDragImage function in MFC 4.2. The CImageList pointer returned from CreateDragImage must now be explicitly deleted. If you are using a version of MFC prior to 4.2, please comment this code out.
The following file is available for download from the Microsoft Software Library:


 ~ Mfcdrag.exe (size: 36508 bytes)

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

NOTE: Use the -d option when running MFCDRAG.EXE to decompress the file and recreate the proper directory structure.  

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

6 Experts available now in Live!

Get 1:1 Help Now