how do I get all column widths for an existing listview?
I would like to store them in an .ini file and initialize the listview with them the next time it's displayed (and if the key with these values isn't present, use a few default values)
Setting them isn't difficult (SendMessage, LVM_SETCOLUMNWIDTH, ...) but I don't know how I retrieve their current values (when the user change them manually)...
Code: Select all
#NoEnv
Gui, New
Gui, Add, ListView, w150 h50 hwndListView_hWnd, Pos.|Name|Date
Gui, Show
return
GuiClose:
; At this place, show all column widths for "the ListView_hWnd" window handle e.g. with "MsgBox, ..."
ExitApp
return