|
MenuItemInfoTypeData Field |
The contents of the menu item. The meaning of this member depends on the value of fType
and is used only if the MIIM_TYPE flag is set in the fMask member.
To retrieve a menu item of type MFT_STRING, first find the size of the string by setting
the dwTypeData member of MENUITEMINFO to NULL and then calling GetMenuItemInfo.The value
of cch+1 is the size needed.Then allocate a buffer of this size, place the pointer to the
buffer in dwTypeData, increment cch, and call GetMenuItemInfo once again to fill the
buffer with the string. If the retrieved menu item is of some other type, then
GetMenuItemInfo sets the dwTypeData member to a value whose type is specified by the
fType member.
When using with the SetMenuItemInfo function, this member should contain a value whose
type is specified by the fType member.
dwTypeData is used only if the MIIM_STRING flag is set in the fMask member
Namespace: Xcalibur.NativeMethods.V2.MenusAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax Public TypeData As String
val mutable TypeData: string
Field Value
StringSee Also