Solved

implementing a CTreeCtrl

Posted on 1999-01-08
1
404 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
[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
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1327391
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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 55
Path of Workbook 3 87
Remove Password Protection from pdf (with password) using an command line executable 5 84
Capture logon name 13 106
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.

696 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