The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: DC on December 07, 2005, 05:18:28 AM

Title: syntax Q
Post by: DC on December 07, 2005, 05:18:28 AM
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
Title: Re: syntax Q
Post by: Tedd on December 07, 2005, 12:18:31 PM
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.
Title: Re: syntax Q
Post by: GregL on December 07, 2005, 06:33:32 PM
MASK (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmasm/html/vclrf_masm_mask.asp) is a MASM keyword.
Title: Re: syntax Q
Post by: DC on December 07, 2005, 11:57:28 PM
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
Title: Re: syntax Q
Post by: Mark Jones on May 11, 2009, 06:35:46 PM
Just a note, "mask" works in GoASM with the latest GoASM headers.