如何使用c ++使用win32 api创建滚动条? [英] how to create scroll bar using win32 api using c++ ??

查看:78
本文介绍了如何使用c ++使用win32 api创建滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出一个与样本相关的滚动条,但谷歌上没有好的样本,google上有很多与滚动条相关的内容,但所有内容都变得复杂或混乱。


我有一个窗口,其中我已经以按钮的形式插入了许多子窗口现在我想通过拖动滚动条在我的窗口中实现滚动条我想看到我所有的子窗口(或按钮),可以任何人帮助我?

解决方案

微软的例子是:


https://docs.microsoft.com/en-us/windows/desktop/Controls/create-scroll -bars


https://docs.microsoft.com/en-us/windows/desktop/Controls/scroll-text-in-scroll-bars


https://docs.microsoft.com/en-us/windows/desktop/Controls/scroll-a-bitmap-in-scroll-bars



I am trying to find out a sample related scroll bar but there is no good sample on google,there are lot of stuff on google related to scroll bars but all are vary complicated or confused .

I have a window in which i have inserted many child windows in form of buttons now i want to implement scroll bar in my window by dragging scroll bar i want to see my all child windows (or buttons), can any one help me ?

解决方案

Microsoft examples are at:

https://docs.microsoft.com/en-us/windows/desktop/Controls/create-scroll-bars

https://docs.microsoft.com/en-us/windows/desktop/Controls/scroll-text-in-scroll-bars

https://docs.microsoft.com/en-us/windows/desktop/Controls/scroll-a-bitmap-in-scroll-bars


这篇关于如何使用c ++使用win32 api创建滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆