Link to home
Start Free TrialLog in
Avatar of beardenc
beardenc

asked on

CListCtrl Fixed headers and Column Widths

I have a dialog based application which contains two list controls setup in report view that are used to monitor status events.  I would like to fix the column widths and their headers so that they can not be changed or clicked.  

I have set the controls up through the ClassWizard with an associated variable of CListCtrl type.  I access the entries of the controls through the LV_ITEM structure and the columns through the LV_COLUMN structure.

I'm using version 5 of MSVC/C++ on NT 4/SP3.
Avatar of abancroft
abancroft

ASKER CERTIFIED SOLUTION
Avatar of Vinayak Kumbar
Vinayak Kumbar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

I forgot to say!!!

U have the variable for list control. declare it as of Ur class's object instead of CListCtrl. That means subclass that control to Ur class(say CDontResize).

Try it out.