在水平滚动条上画一条线-C# [英] Draw a line on horizontal scrollbar - C#

查看:107
本文介绍了在水平滚动条上画一条线-C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以在hScrollBar上画一条线(约5像素宽)? 该线将从一端移到另一端.它将代表运动.

Is there any way to draw a line (about 5 pixels width) on hScrollBar ? The line will move from one end to another. It will represent the movement.

谢谢

推荐答案

我认为这是可能的.您有两个选择-所有者绘制的滚动条(在C ++/MFC中为挂起示例)-

I think its possible. You have two options - an owner drawn scrollbar (an example in C++/MFC to get a hang - http://www.codeproject.com/Articles/14724/Replace-a-Window-s-Internal-Scrollbar-with-a-custo ), the second option is to track the scrollbar movements, draw the line and repaint it.

编辑

这可能也有帮助- 查看全文

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