Mac OS 9
MenuItemDataRec Struct Reference

#include <Menus.h>

Data Fields

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
 
UInt16 cmdVirtualKey
 

Detailed Description

MenuItemDataRec

Summary: The MenuItemDataRec structure is used to get and change aspects of a menu item. It is used with the Copy/SetMenuItemData APIs.

Discussion: 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.


The documentation for this struct was generated from the following file: