简体   繁体   中英

How do you prevent a user from resizing the column width of a clistctrl (report view)?

如何防止用户调整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 as HDF_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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM