PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: paulDiagnos on May 20, 2009, 06:51:33 AM

Title: Listview changing style
Post by: paulDiagnos on May 20, 2009, 06:51:33 AM
Can someone tell me how to change the style of a listview in code.

i wanted to dynamically change a listview to have or not have  %LVS_singleSEL

Paul.
Title: Re: Listview changing style
Post by: David Kenny on May 20, 2009, 11:40:07 AM
You can toggle it with the following code:

vStyle = GetWindowLong(hList, %GWL_STYLE)
SetWindowLong hList, %GWL_STYLE, vStyle XOR %LVS_SINGLESEL


David
Title: Re: Listview changing style
Post by: paulDiagnos on May 20, 2009, 11:54:34 AM
Your a star, Cheers boss!!