背景色改了,发现子项目的lable的背景色不透明...这个不知如何改呀,谢btw:前景色呢,对应的常量都是什么...没找着.呵
解决方案 »
- Visual Studio2010里VB 如何在窗体上print???
- VB连接数据库案例------运行时数据库出现在程序旁边
- 如何在程序中判断当前系统中安装的autocad版本?
- 系统是WIN2003SERVER的VB6精简斑的 生成的可执行的文件EXE怎么不能别的机子上跑啊!!!哭求!!!!!!!!!!!!
- 盤點庫存時怎麼鎖定一些表?不讓其他用戶更新,並提示更新數據的用戶說明表正被人操作,請他稍後進行.
- MSHFlexGrid怎样隐藏一列?
- 关于toolbar的2个疑问?
- 请教
- 做c/s需要什么样的网络配置?(可以在对等网上做吗?)
- 简单的问题……………送分了快来***
- 缺失文件
- VB中“打开”对话框选中所需要的文件后,给怎么处理??????请教各位!!!!!!!!!!
Private Declare Function GetWindowLong Lib "User32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "User32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPrivate Const GWL_STYLE = -16&
Private Const TVM_SETBKCOLOR = 4381&
Private Const TVM_GETBKCOLOR = 4383&
Private Const TVS_HASLINES = 2&Private Sub Form_Load() Dim nodex As Node
Dim i As Integer
Dim lStyle As Long Call SendMessage(TreeView1.hWnd, TVM_SETBKCOLOR, 0, ByVal RGB(255, 0, 0))
lStyle = GetWindowLong(TreeView1.hWnd, GWL_STYLE)
Call SetWindowLong(TreeView1.hWnd, GWL_STYLE, lStyle - TVS_HASLINES)
Call SetWindowLong(TreeView1.hWnd, GWL_STYLE, lStyle) TreeView1.Style = tvwTreelinesPlusMinusPictureText
TreeView1.BorderStyle = ccFixedSingle
With TreeView1.Nodes
Set nodex = .Add(, , "R", "Root")
nodex.BackColor = RGB(255, 0, 0)
For i = 1 To 10
Set nodex = .Add("R", tvwChild, "C" & i, "Child " & i)
nodex.BackColor = RGB(255, 0, 0)
nodex.EnsureVisible
Next
End With