Listview changing style

Started by paulDiagnos, May 20, 2009, 06:51:33 AM

Previous topic - Next topic

paulDiagnos

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.

David Kenny

You can toggle it with the following code:

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


David

paulDiagnos