DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 148738 - Last Review: September 1, 2005 - Revision: 5.0

This article was previously published under Q148738

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 files are available for download from the Microsoft Download Center:

Visual C++ 6.0

Collapse this imageExpand this image
Download
Download Mfcdrag.exe now (http://download.microsoft.com/download/vc60pro/demo4/1/win98/en-us/mfcdrag.exe)
For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591  (http://support.microsoft.com/kb/119591/ ) How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Visual C++ .NET

Collapse this imageExpand this image
Download
Download Mfcdragvcnet.exe now (http://download.microsoft.com/download/visualstudionet/sample/1.21/win98mexp/en-us/mfcdragvcnet.exe)
Release Date: June 27, 2002

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591  (http://support.microsoft.com/kb/119591/ ) How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file. Note Use the -d option when running MFCDRAG.EXE to decompress the file and recreate the proper directory structure.

APPLIES TO
  • Microsoft Visual C++ 4.0 Standard Edition
  • Microsoft Visual C++ 4.1 Subscription
  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
Keywords: 
kbhowto kbdownload kbmfc kbuidesign kbprogramming kbfile kbdragdrop kbsample kbctrl atdownload KB148738
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support