Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Drag and Drop in CListCtrl

Posted on 1998-11-17
1
Medium Priority
?
426 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 400 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

972 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