I'm going through one of Iczelion's tut's "Tutorial 19: Tree View Control"
this is in the WndProc:
LOCAL tvinsert:TV_INSERTSTRUCT
and it's refered to like this:
mov tvinsert.item.imask,TVIF_TEXT+TVIF_IMAGE+TVIF_SELECTEDIMAGE
in msds is "item.mask" and not "item.imask"...
i've looked at the .inc's and tried to figure out how the structure is made and can't see why only "imask" works...
any one know why this is and when I should expect differences like this?
thanx,
DC
Not all of the structs in windows.inc will match the msdn ones exactly - mostly due to some of the names being keywords in masm.
In the case of the TVITEM (which is what tvinsertitem.item refers to) the first element has been named "_mask" now, though imask will still work due to a "_mask equ <imask>" -- for backwards compatibility I assume.
MASK (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmasm/html/vclrf_masm_mask.asp) is a MASM keyword.
ahah!
now I notice that "mask" without the "i" does highlight as a keyword (I use WinAsm), so I'll just keep watch for that,
thanx guys,
DC
Just a note, "mask" works in GoASM with the latest GoASM headers.