GetItemStyle
GetItemStyle Obtain the current character formatting of a menu item MenuHandle theMenu ; handle of menu containing item to query short whichItem ; item ID if an item in theMenu
Style *chStyle ; receives character style bit flags This queries the current stylistic variation (bold, italic, underline, etc.) used when a specified menu item is displayed.
theMenu is a handle leading to a variable-length MenuInfo structure. It identifies the menu containing the item whose character style you
wish to query.
whichItem identifies which item in menu theMenu to query. Items are
numbered sequentially with the topmost item having an ID of 1.
chStyle is the address of a 16-bit integer (nominally, an enumumerated
data type named Style). Upon return, it contains the bit flags of the current style setting of the menu item. A return value of 0 indicates
Notes: This function looks up the 1-byte character style setting of whichItem in
the un defined portion of the MenuInfo structure identified by theMenu and copies it into your chStyle variable.