Closed Hoto-Cocoa closed 1 year ago
I created ListView using following code:
ui.NewListView(parent, ui.ListViewOpts(). Position(location). Size(size). CtrlStyles(co.LVS_REPORT|co.LVS_NOSORTHEADER|co.LVS_SHOWSELALWAYS|co.LVS_SINGLESEL). CtrlExStyles(co.LVS_EX_FULLROWSELECT|co.LVS_EX_GRIDLINES))
And If I pressing Ctrl-A, the program crashes with message: LVM_SETITEMSTATE failed.
LVM_SETITEMSTATE failed.
I can confirm It crashes without any items to select.
LVM_SETITEMSTATE fails to select all items if the list view has LVS_SINGLESEL style. This is an undocumented behavior, apparently.
LVM_SETITEMSTATE
LVS_SINGLESEL
Thanks for fix!
I created ListView using following code:
And If I pressing Ctrl-A, the program crashes with message:
LVM_SETITEMSTATE failed.
I can confirm It crashes without any items to select.