Solved

Drag and Drop in CListCtrl

Posted on 1998-11-17
1
411 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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

12 Experts available now in Live!

Get 1:1 Help Now