如何更改窗口滚动栏的位置?

发布于 2025-01-23 04:32:26 字数 216 浏览 2 评论 0原文

如何更改窗户的垂直滚动条的位置?

我指的是xy中的位置,例如将其设置在窗口中间而不是边缘。

How to change the position of the Vertical Scrollbar of a window?

I'm referring to the position in xy, for example set it in the middle of the window instead of the edges.

Scrollbar

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

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

发布评论

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

评论(1

糖果控 2025-01-30 04:32:26

您无法重新定位窗口内置的滚动条。您将必须禁用本机滚动条(删除窗口的ws_hscroll/ws_vscroll样式),然后创建一个单独的 scrollbar 作为窗口的孩子控制。然后,您可以使用x/y createwindow/ex() setwindowpos()的参数使用x/ y y y y y y 。

You cannot reposition a scrollbar that is built-in to a window. You will have to disable the native scrollbar (remove the window's WS_HSCROLL/WS_VSCROLL style) and then create a separate ScrollBar control as a child of the window. Then you can position that child wherever you want, using the x/y parameters of CreateWindow/Ex() or SetWindowPos().

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