listView 显示 如下的格式
如下的 格式
a1 a2 a3 a4
b1 b2 b3 b4
c1 c2 c3 c4
我想把 列2 加上图片 b行变成粗体 可以实现吗. 怎么实现 还有怎么 可以实现 我知道 我点的是 b1 b2 b3 还是 c1 c2
谢谢了
如下的 格式
a1 a2 a3 a4
b1 b2 b3 b4
c1 c2 c3 c4
我想把 列2 加上图片 b行变成粗体 可以实现吗. 怎么实现 还有怎么 可以实现 我知道 我点的是 b1 b2 b3 还是 c1 c2
谢谢了
lsvEMail.ListItems(2).ListSubItems(2).Bold = True
lsvEMail.ListItems(2).ListSubItems(3).Bold = True
lsvEMail.ListItems(2).ListSubItems(4).Bold = True
lsvEMail.ListItems(2).ListSubItems.Item(2).ReportIcon = 2
告诉我 还有怎么 可以实现 我知道 我点的是 b1 b2 b3 还是 c1 c2 这个问题吧 前边的问题全部解决了
顶
Dim mRow As ListItem
Set mRow = lv.ListItems.Add(, , CStr(i))用他来接收 接收了 也不用 怎么利用 mRow 那里面是什么?
Dim mRow As ListItem '--------------------------
ListView1.View = lvwReport
ListView1.FullRowSelect = True
ListView1.ColumnHeaders.Add , , "序号"
ListView1.ColumnHeaders.Add , , "标题"
For i = 1 To 40
Set mRow = ListView1.ListItems.Add(, , CStr(i))
mRow.SubItems(1) = "谢谢 " & i
Next
End SubPrivate Sub Form_Click()
Dim intX As Integer
On Error Resume Next '如果整数未输入。
intX = InputBox("Check Item", , ListView1.SelectedItem.Index)
If IsNumeric(intX) Then '确保整数已输入。
If ListView1.ListItems(intX).Selected = True Then
MsgBox ListView1.ListItems(intX).Text & " is selected."
Else
MsgBox "Not selected"
End If
End If
End Sub
If ListView1.SelectedItem Is Nothing Then Exit Sub
MsgBox "你选择了" & ListView1.SelectedItem.SubItems(1)
End Sub
網上有源碼的。
例如我鼠标点了 b3 我会得到对应的字符串
点 c4也会得到 对应的字符串
哪为高手可以高手我告诉 ListViewControl.HitTest() HitTest 属性怎么用