struct MDEFDrawItemsData { MenuItemIndex firstItem; MenuItemIndex lastItem; MenuTrackingData * trackingData; void * context; };
Name Description firstItem The first item to draw. lastItem The last item to draw. trackingData Information about the menu's tracking state. The virtualMenuTop and virtualMenuBottom fields in this structure will be the most useful in handling the DrawItems message. context A drawing context that may be passed to one of the Appearance Manager APIs that takes a context.
struct MDEFHiliteItemData { MenuItemIndex previousItem; MenuItemIndex newItem; };
struct MenuItemDataRec { MenuItemDataFlags whichData; StringPtr text; UniChar mark; UniChar cmdKey; UInt32 cmdKeyGlyph; UInt32 cmdKeyModifiers; Style style; Boolean enabled; Boolean iconEnabled; UInt8 filler1; SInt32 iconID; UInt32 iconType; Handle iconHandle; MenuCommand cmdID; TextEncoding encoding; MenuID submenuID; MenuRef submenuHandle; SInt32 fontID; UInt32 refcon; OptionBits attr; CFStringRef cfText; Collection properties; UInt32 indent; };
When using this structure with Copy/SetMenuItemData, the caller must first set the whichData field to a combination of MenuItemDataFlags indicating which specific data should be retrieved or set. Some fields also require initialization before calling CopyMenuItemData; see the individual MenuItemDataFlags documentation for details.
struct MenuTrackingData { MenuRef menu; MenuItemIndex itemSelected; MenuItemIndex itemUnderMouse; Rect itemRect; SInt32 virtualMenuTop; SInt32 virtualMenuBottom; };
© 2000 Apple Computer, Inc. (Last Updated 7/21/2000)