Solved

Drag and Drop in CListCtrl

Posted on 1998-11-17
1
415 Views
Last Modified: 2013-11-20
Hello,

I got my CListCtrl to do drag and drop for rearranging the rows.  However, the drag and drop process always displays the first column text because of the CImageList created by CreateImageList().  I need help on displaying the other columns' text in the row or the entire row's text other than the first column's text.  Thank you in advance for your assistance.

Sincerely,

Jennifer
0
Comment
Question by:jli
1 Comment
 
LVL 1

Accepted Solution

by:
perrizo earned 100 total points
ID: 1324857
Hi,

Your CListCtrl needs to be set to use the LVS_EX_FULLROWSELECT option

SetExtendedStyle(GetExtendedStyle()|LVS_EX_FULLROWSELECT );

calling this function should enable full row selection and allow you to drag all of your sub items.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 100
xyBalance chalenge 58 93
post4 challenge 28 99
unix example issues 18 89
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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. …
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 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

18 Experts available now in Live!

Get 1:1 Help Now