PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Haakon Birkeland on April 19, 2007, 08:33:47 PM

Title: Add close button in cell of listview column
Post by: Haakon Birkeland on April 19, 2007, 08:33:47 PM
I have looked at some apps and they seem to have an X button in the cell of one of the columns. So that if you clicked on that button it would delete the row.
How would I go about doing this or is this just way out of my league?

thanx
bert
Title: Re: Add close button in cell of listview column
Post by: TechSupport on April 19, 2007, 09:28:31 PM
Maybe those controls have the LVS_EX_CHECKBOXES extended listview style enabled? They could then be using Listview_GetCheckState and Listview_SetCheckState to manipulate it. Not sure. Maybe you can use Spy.exe to check the styles of the listview.
Title: Re: Add close button in cell of listview column
Post by: TechSupport on April 19, 2007, 09:32:05 PM
hmmmm.... yeah, a checkbox is not really an "X" though..... Maybe the Listview is ownerdrawn.