开发者

How to catch a CListCtrl column width change event?

开发者 https://www.devze.com 2023-03-11 15:59 出处:网络
How can I catch CListCtrl column width change event in MFC? I believe there should be an OnNotify() event but I am note sure about various values and the parameters to use for message map and the even

How can I catch CListCtrl column width change event in MFC? I believe there should be an OnNotify() event but I am note sure about various values and the parameters to use for message map and the event itself.

Please note that a CListCtrl column width can change by dragging the column divider or by double clicking on the head开发者_如何学运维er row.


I think the key is to understand that there is a difference in the listcontrol itself, and the header control. By using the GetHeaderCtrl() member function of the listcontrol you can get to the header control. For working with the header control, see this article: http://www.codeproject.com/KB/list/headerctrl.aspx?display=Mobile#Anchor-Handlin-41471 Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消