Windows GUI 控制:LVCOLUMN 和 HDITEM 之间的区别?

发布于 2024-10-10 03:16:09 字数 114 浏览 0 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

超可爱的懒熊 2024-10-17 03:16:09

您通常只处理 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文