CListCtrl drag image does not display first column, when its single column. How do we manage?

Posted on 2007-11-23
Last Modified: 2013-11-20
I have a CListCtrl with only one column. When I drag and capture using OnBegindrag, the create image creates image with a long line followed by the other columns. (CreateDragImage)
Now, I only have one column and I could see only the line image and not the content of the first column.

How do I make the shadow line smaller or display the shadow content of the first column?
Question by:shiffin
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
  • 3
  • 2
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20341809
as a dirty solution, you can make first column width to zero (not used), and fill columns starting with second one.

Author Comment

ID: 20341910
I tried this, but, the line length it draws is on fixed length. So, even if I have more columns, it hides the first visible few centimeters.

Author Comment

ID: 20439789
How do I close this message? Where is the help on how to use this forum more efficiently?
LVL 55

Accepted Solution

Jaime Olivares earned 500 total points
ID: 20441793
Do you want to accept the solution, request for point refund?

Author Comment

ID: 20442209
No. I only want to close it. No refund is requried. Its done. Thanks

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

636 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