News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

syntax Q

Started by DC, December 07, 2005, 05:18:28 AM

Previous topic - Next topic

DC

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
this isn't daja vu, I'm just learning it for the 37th time
http://www.bmath.net

Tedd

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.
No snowflake in an avalanche feels responsible.

GregL


DC

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
this isn't daja vu, I'm just learning it for the 37th time
http://www.bmath.net

Mark Jones

Just a note, "mask" works in GoASM with the latest GoASM headers.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08