如何防止用户调整clistctrl(报表视图)的列宽?
You'll have to override the OnNotify
method to catch header's TRACK messages.
Here is a solution: Prevent column resizing
Update: on newer MFC versions and on Vista, there is the LVCFMT_FIXED_WIDTH
format flag.
You can set that flag when you insert the column: see LVCOLUMN Structure
LVCFMT_FIXED_WIDTH
Version 6.00 and Windows Vista. Can't resize the column; same asHDF_FIXEDWIDTH
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.