Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Drag and Drop in CListCtrl

Posted on 1998-11-17
1
Medium Priority
?
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

670 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