local tvinsert:TV_INSERTSTRUCT

mov tvinsert.item
.............. there is no item in tip of 2.0.1.7
...............why




typedef struct tagTVINSERTSTRUCT {
HTREEITEM hParent;
HTREEITEM hInsertAfter;
#if (_WIN32_IE >= 0x0400)
union
{
TVITEMEX itemex;
TVITEM item;
} DUMMYUNIONNAME;
#else
TVITEM item;
#endif
} TVINSERTSTRUCT, *LPTVINSERTSTRUCT;
Posted on 2005-02-08 11:35:45 by jndk
Hi

There is a trick to it.

Type:
mov tvinsert.it
and push Tab key.
Posted on 2005-02-08 13:35:54 by KetilO
i means

mov @tvinsert.item._mask,TVIF_TEXT


not mov @tvinsert.ITEMTYPE :roll:
Posted on 2005-02-08 21:00:42 by jndk
Thanks

There is a bug in the masmApiStruct.api file.

Correct the line:
TV_INSERTSTRUCT,hParent,hInsertAfter,ITEMTYPE:
to:
TV_INSERTSTRUCT,hParent,hInsertAfter,itemex:TVITEMEX,item:TVITEM

KetilO
Posted on 2005-02-09 01:54:01 by KetilO