![]() |
class GSubMenu { public: // List bool RemoveItem(GMenuItem *Item) bool RemoveItem(int i) GMenuItem *AppendItem(char *Str, int Id, bool Enabled) GMenuItem *AppendSeparator() GMenuItem *ItemAt(int i) GSubMenu *AppendSub(char *Str) void Empty() // Other GMenuItem *GetParent() int Float(GWindow *Parent, int x, int y, bool Left = true) |
![]() |
// _Constructor GSubMenu(char *name = "", bool Popup = true) // Other HMENU Handle() |
![]() |
// _Constructor GSubMenu(char *name = "") |
  |
}; |
Argument | Description |
GMenuItem *Item |
Removes a specific item.
Argument | Description |
int i |
Removes an item by index.
Argument | Description |
char *Str | |
int Id | |
bool Enabled |
Appends an item to the menu.
Appends a separator.
Argument | Description |
int i |
Returns the item at an index.
Argument | Description |
char *Str |
Appends a sub menu.
Clears the menu of items.
Returns the parent item.
Argument | Description |
GWindow *Parent | |
int x | |
int y | |
bool Left = true |
Opens the menu as a context menu. Returns the item selected or 0.
Argument | Description |
char *name = "" | |
bool Popup = true |
Constructs the object
Returns the HMENU
Argument | Description |
char *name = "" |
Construct the object