一种将 win32 窗口滚动条设置到左侧的方法?
Win32 API中有没有一种方法可以将垂直滚动条的位置设置为窗口的左边框(可能是本机的)。
我查看了 WS 定义,只有 WS_EX_LEFTSCROLLBAR 但它适用于从右到左的文本。
先感谢您。
Is there a way in Win32 API to set the place of vertical scrollbar to the left border of the window(a native one maybe).
I've looked at the WS definition and there is only WS_EX_LEFTSCROLLBAR but its for right to left text.
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有趣的。似乎文档会根据您查看的位置而有所不同。如果您查看“扩展窗口样式”,它会显示:
但如果你看看 CreateWindowEx 下,它会说:
所以我不知道官方的答案是什么。我确实在我的机器(Windows 7 Professional)上尝试过,滚动条出现在左侧。
Interesting. It seems that the documentation varies depending on where you look. If you look under "Extended Window Styles", it says:
But if you look under CreateWindowEx, it says:
So I have no idea what the official answer is. I did try it on my machine (Windows 7 Professional) and the scrollbar appeared on the left.
我使用此代码意外地对子类化列表视图执行了此操作。混淆了 windows 扩展样式和 listview 扩展样式。 LABELTIP 和 LEFTSCROLLBAR 具有相同的值。
I did it accidentally to a subclassed listview with this code. Had confused windows extended styles for listview extended styles. LABELTIP and LEFTSCROLLBAR have the same value.