使用类别(类似控制面板)视图创建列表视图/树形视图

发布于 2024-08-31 07:17:44 字数 414 浏览 3 评论 0原文

我目前有一个应用程序,它使用带有组的常规 ListView 来显示一堆模块。

我想使用类别视图。类别视图是 Windows Vista 中为控制面板引入的新视图:

Windows 7 控制面板

是否有第三方控件或一种(通过 API)创建模仿 Windows 7 控制面板行为的 ListView 的方法?

  • 带有图标和操作链接的类别。
  • 类别单击和操作单击的单独事件。
  • 一列或两列布局
  • 操作链接或行之间的分隔符

编辑: 似乎 Windows 在内部使用 TreeView (SysTreeView32) 控件来实现此目的。

I currently have an application which uses a regular ListView with groups to show a bunch of modules.

I would like to use a Category view. Category view is the new view introduced in Windows Vista for the Control Panel:

Windows 7 Control Panel

Is there a third party control or a way (via API) to create a ListView which mimics the behavior of the Windows 7 Control Panel?

  • Categories with icons and action links.
  • Separate events for Category Click and Action Click.
  • One or two column layout
  • Separators between action links or lines

EDIT: Seems like Windows is using a TreeView (SysTreeView32) control internally for this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

南巷近海 2024-09-07 07:17:44

它不是 ListView,也不是 TreeView,它是神秘的 DirectUIHWnd。好久没来了,回到XP的欢迎界面。仍然没有记录。

It's not a ListView, not a TreeView, its the enigmatic DirectUIHWnd. Been around a long time, back to XP's Welcome screen. Still not documented.

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