我想在ProgressBar.vale<80时
控件ProgressBar内颜色改变
这属性如何设置?
谢谢!
控件ProgressBar内颜色改变
这属性如何设置?
谢谢!
解决方案 »
- 请问如何修改其他程序中日历控件的值(句柄)
- 在VB中用ADO连接远程ORACLE数据库问题?
- (急!!!)请问怎么在Word中插入行列数动态变化的表格并向表格中写入内容阿???
- 请问怎样取消用Setup Factory打包的程序安装前的初始化
- 关于select * into newtable from oldtable的问题,请进来看看
- 请问大家关于StatusBar控件的问题
- (菜鸟问题)Windows 系统下vb 如何连接Unix下DB2数据库
- 函数调用问题 ~~
- 如何知道用户选择了取消按钮?
- MS 发表了 VS6SP4 , 请各位注意下载!!!!!
- 读取文本的问题,请大家指教一下
- VB中用ADODB连接的数据库,怎么对表进行操作啊
就用picturebox往里画框,贴图可以更好看些
那里面全英文阿
还要添加call
pcMemDC.clscProgresssBar.cls
怎么添加阿 帮个忙 谢谢!
我这个需要涉及api 吧 !
Option ExplicitPrivate Const WM_USER = &H400
Private Const CCM_FIRST As Long = &H2000&
Private Const CCM_SETBKCOLOR As Long = (CCM_FIRST + 1)
Private Const PBM_SETBKCOLOR As Long = CCM_SETBKCOLOR
Private Const PBM_SETBARCOLOR As Long = (WM_USER + 9)
Private Declare Function SendMessage Lib "user32" _
Alias "SendMessageA" _
(ByVal hwnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
lParam As Any) As Long
'设置progressbar的前景色,需要IE4以上,参数hwndProgBar为控件hwnd,color为要设置的颜色
Private Sub SetPForeColor(ByVal hwndProgBar As Long, ByVal color As Long)
Call SendMessage(hwndProgBar, PBM_SETBARCOLOR, 0&, ByVal color)
End Sub
'设置progressbar的背景色,需要IE3以上,参数hwndProgBar为控件hwnd,color为要设置的颜色
Private Sub SetPBackColor(ByVal hwndProgBar As Long, ByVal color As Long)
Call SendMessage(hwndProgBar, PBM_SETBKCOLOR, 0&, ByVal color)
End Sub