I have a list control with some data, and i need to be able to edit column (i have few columns but only one of them should be editable), also i need to be able in some way to copy multiple rows from this column and also put data (paste) from clipboard. Is this possible to enable that features with minimum efforts? Thank you.
Update: I found solution for editing filed, but it works strange. Here's the article http://www.codeproject.com/Articles/1124/Editing-Sub-Items-in-List-Control
With authors example it works pretty good, but when i tried to remake it for my tabbed project i got an incorrect display of editbox, it's related to tabbed dialog coordinates but i still can't figure out how to fix it.
The article you reference has some problems. If you take a look at the discussions posts after the article, you’ll notice some comments indicating a problem with the placement of the CEdit control. In particular, look for "CEdit placement error". More importantly, if you take a look at the code that was posted, you'll see hard coded adjustments to the SetWindowPos command. It’s never a good idea to hard code adjustments. They should always be calculated dynamically if possible.
I have succeeded in fixing the positioning problems by adding one line of code and removing the hard coded adjustments. See my code below.
The line I added is for the MapWindowPoints to convert the coordinates of the list control item to the coordinate space of the dialog. I've also commented out drawing the rectangle around the edit box since it doesn't seem to add any value.