hello, i want to set some imask options.

but the assembler sais that imask is not defined. I have the latest masm version.
what could be the reasion ?

LOCAL tvinsert:TV_INSERTSTRUCT
MOV tvinsert.hParent, NULL
MOV tvinsert.item.imask,TVIF_TEXT+TVIF_IMAGE+TVIF_SELECTEDIMAGE
; MOV tvitem.imask, TVIF_TEXT+TVIF_IMAGE+TVIF_SELECTEDIMAGE

GREETS B-BBB
Posted on 2003-07-28 17:08:03 by Bubu-Boy
I have no problem with that but it might be because I had the problem and instantly changed Windows.inc, make sure the following line is before the TVITEMA Structure

_mask equ <imask>

TVITEMA STRUCT
_mask DWORD ?
hItem DWORD ?
state DWORD ?
stateMask DWORD ?
pszText DWORD ?
cchTextMax DWORD ?
iImage DWORD ?
iSelectedImage DWORD ?
cChildren DWORD ?
lParam DWORD ?
TVITEMA ENDS

TVITEM equ <TVITEMA>
TV_ITEM equ <TVITEMA>

or try using _mask instead...

MOV tvinsert.item._mask,TVIF_TEXT+TVIF_IMAGE+TVIF_SELECTEDIMAGE
Posted on 2003-07-28 17:20:45 by donkey
it works, thanks !
Posted on 2003-07-29 02:44:20 by Bubu-Boy