Hello, it's me and the Treeview again.
In COMMCTRL.INC following two macros are defined
Now I don't understand why following happens.
If I make following call
treeview gets cleared, but not if I call
The way I read the macro definitions makes me think that in both cases I finally make equal call to SendMessage. Why different result? Just curious, not real problem.
Lasse Rantanen
[email protected]

In COMMCTRL.INC following two macros are defined
Code:
%TVI_ROOT = &HFFFF0000??? FUNCTION TreeView_DeleteItem (BYVAL hWnd AS DWORD, BYVAL hitem AS DWORD) AS LONG FUNCTION = SendMessage(hWnd, %TVM_DELETEITEM, 0, hitem) END FUNCTION FUNCTION TreeView_DeleteAllItems (BYVAL hWnd AS DWORD) AS LONG FUNCTION = SendMessage(hWnd, %TVM_DELETEITEM, 0, %TVI_ROOT) END FUNCTION
If I make following call
Code:
TreeView_DeleteItem hWndTreeView, %TVI_ROOT
Code:
TreeView_DeleteAllItems hWndTreeView
Lasse Rantanen
[email protected]
Comment