What is the column width in a list control after double click on header
Posted on 2004-10-18
List control in report style. I double click on the separator and the column is resized automatically.
I trap the HDN_DIVIDERDBLCLICK in a class derived from CListCtrl (notify message).
I get the event BUT the width of the column is that BEFORE the double click. I have passed the event onto the ListCtrl base class before querying the header for the new width. I have even tried to strip out pending messages in the queue before getting the column width from the header - no effect.
Trapping the HDN_ENDTRACK notify message doesn't help either.
How can one respond to the double click event of the header and get the new column width?