I want to be able to save the columnwidths as a user preference and can do so if they click a quit button by using
That way the user has the columnwidths the way he wants them the next time to program is run. I'm of course having trouble if he click the red 'x' closing the window. I do manage to trap this event and run it through and end of job kind of shutdown but by that time the listview is destroyed and the most recently set columnwidths are gone.
In the WM_NOTIFY event what notification is given when the columns are resized by hand. If there is such a notification I can update the array of column widths on the fly as they adjust the columns.
Thanks in advance,
Bob Mechler
Code:
FOR lCol = 0 TO lColCnt - 1 lv_columnwidth(lCol) = ListView_GetColumnWidth( lv_hctl&, lCol) NEXT lCol 'get horizontal scroll position lv_horzscroll& = GetScrollPos(lv_hctl&,%SB_HORZ)
In the WM_NOTIFY event what notification is given when the columns are resized by hand. If there is such a notification I can update the array of column widths on the fly as they adjust the columns.
Thanks in advance,
Bob Mechler
Comment