Windows GUI 控制:LVCOLUMN 和 HDITEM 之间的区别?
我正在使用 Windows 列表视图控件,对 LVCOLUMN 和 HDITEM 有点困惑,前者结构用于定义列属性,后者用于定义列的实际标题对象,我理解正确吗?
如果是这样,我需要创建/定义两者吗?
I am using Windows List-View control and am little bit confused by LVCOLUMN and HDITEM, former structure is used to define column properties, latter is used to define actural header object of the column, do I understand correctly?
If so, do I need to create / define both?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您通常只处理 LVCOLUMN 并让列表视图本身为您更新标题控件。
直接访问标头时,通常只需要使用 HDITEM(或根本与标头控件对话),这种情况很少见(但在某些情况下确实会发生)。
You usually just deal with LVCOLUMN and let the listview itself update the header control for you.
You generally only need to use HDITEM (or talk to the header control at all) when accessing the header directly, which is rare (but does happen in some situations).