Solved

Drag and Drop in CListCtrl

Posted on 1998-11-17
1
413 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 32
while loop over for loop 7 92
no14 challenge 14 62
matchUp  challenge 6 52
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. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

948 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

21 Experts available now in Live!

Get 1:1 Help Now