Contains context menu native API.
- Namespace
- xtd::forms::native
- Library
- xtd.forms.native
- Warning
- Internal use only
◆ create()
static intptr xtd::forms::native::context_menu::create |
( |
| ) |
|
|
staticprotected |
Creates context menu.
- Returns
- The created context menu window handle.
- Warning
- Internal use only
◆ destroy()
static void xtd::forms::native::context_menu::destroy |
( |
intptr |
context_menu | ) |
|
|
staticprotected |
Destroys context menu.
- Parameters
-
- Warning
- Internal use only
◆ insert_item()
static void xtd::forms::native::context_menu::insert_item |
( |
intptr |
context_menu, |
|
|
size_t |
pos, |
|
|
intptr |
menu_item |
|
) |
| |
|
staticprotected |
Insert specified item to specisified position.
- Parameters
-
- Warning
- Internal use only
◆ insert_menu()
static void xtd::forms::native::context_menu::insert_menu |
( |
intptr |
context_menu, |
|
|
size_t |
pos, |
|
|
intptr |
menu_item, |
|
|
const xtd::string & |
text |
|
) |
| |
|
staticprotected |
Insert specified menu item to specisified position.
- Parameters
-
context_menu | Context menu handle. |
pos | Position to insert menu item. |
menu_item | Menu item to insert. |
text | The text associated with this menu. |
- Warning
- Internal use only
◆ native_handle()
static intptr xtd::forms::native::context_menu::native_handle |
( |
intptr |
context_menu | ) |
|
|
staticprotected |
Gets native menu handle.
- Parameters
-
- Returns
- The native menu handle.
- Warning
- Internal use only
◆ remove_item()
static void xtd::forms::native::context_menu::remove_item |
( |
intptr |
context_menu, |
|
|
size_t |
pos |
|
) |
| |
|
staticprotected |
Remove menu item from specisified position.
- Parameters
-
context_menu | Context menu handle. |
pos | Position to insert menu item. |
- Warning
- Internal use only
◆ text()
static void xtd::forms::native::context_menu::text |
( |
intptr |
context_menu, |
|
|
const xtd::string & |
text |
|
) |
| |
|
staticprotected |
Sets text menu.
- Parameters
-
context_menu | Context menu handle. |
text | The text associated with this menu. |
- Warning
- Internal use only
The documentation for this class was generated from the following file: