



Compile error:
User-defined type not defined
click ok or help

Private Sub Command2_Click()
Dim LV As LV_ITEM
Dim numSelected As Long
Dim mywindowclass As Long, wtlsplitterwindow As Long, atlac As Long
Dim syslistview As Long
mywindowclass = FindWindow("my window class", vbNullString)
wtlsplitterwindow = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
atlac = FindWindowEx(wtlsplitterwindow, 0&, "atl:0053a8c0", vbNullString)
syslistview = FindWindowEx(atlac, 0&, "syslistview32", vbNullString)
With LV
.mask = LVIF_STATE
.state = True
.stateMask = LVIS_SELECTED
End With
'by setting wParam to -1, the call affects all
'listitems. To just change a particular item,
'pass its index as wParam.
Call SendMessage(syslistview, _
LVM_SETITEMSTATE, _
1, _
LV)
End Sub
Public Function TreeView_GetNextItem(hWnd As Long, hItem As Long, Flag As Long) As Long
TreeView_GetNextItem = SendMessage(hWnd, TVM_GETNEXTITEM, ByVal Flag, ByVal hItem)
End Function

Return to Visual Basic Programming
Users browsing this forum: No registered users and 0 guests