InitMenuItem
The InitMenuItem structure defines one menu item. This structure
is non-standard - it is the analogue of the FarMenuItem
structure. The only difference is the Text member.
Attention!
- The InitMenuItem structure is not a part of the standard API.
struct InitMenuItem { char* Text; int Selected; int Checked; int Separator; };
Remarks
Use of the InitMenuItem structure instead of the FarMenuItem
structure is reasoned by the following:
FarMenuItem.Text variable is large, that's why direct
initalization of an array of FarMenuItem structures may significantly increase
memory usage.
You can use the InitMenuItems function for translation of InitMenuItem structures to FarMenuItem structures.
See also: