CListCtrl question
Hi,
I have a dialog containing a report view CListCtrl with several columns. When you double-click on the header divider the column to the left of the divider collapses. I'd like to know if there is any way you can prevent this from happening.
Thanks
[314 byte] By [
NetMaster] at [2007-11-20 11:52:08]

# 1 Re: CListCtrl question
Strange... I just tried that with one of my own applications but I can't seem to replicate any such behaviour. Clicking on the header divider simply changes my cursor to a little ' cross' shape which allows me to resize the columns. Nothing unusual seems to be happening... :confused:
John E at 2007-11-11 4:02:29 >

# 2 Re: CListCtrl question
John E
It may happen if a column has width showing all strings. Try to drag column to resize and then double-click on divider.
NetMaster,
After subclassing list control, handle HDN_DIVIDERDBLCLICK.
If you use wizard to insert a handler, assign 1 (one) to a pResult. If you will handle WM_NOTIFY, retyrn TRUE when checked notification code is equal to HDN_DIVIDERDBLCLICK.
JohnCz at 2007-11-11 4:03:32 >

# 3 Re: CListCtrl question
John E
It may happen if a column has width showing all strings. Try to drag column to resize and then double-click on divider.Ah - I see it now. I'd misunderstood the word 'collapses'. What seems to happen is that the column to the left gets reset to its default width. Therefore, if you haven't resized it, there seems to be no action. Well spotted!
John E at 2007-11-11 4:04:36 >
