GetTopMenu
Return the menu handle of the window's main, top level menu.
Menu GetTopMenu();
Parameters
None
Return Value
A menu class object that can be used to access menu items.
Remarks
Raises an exception, Facilita.Exception.FCException,
if the window does not have a top level menu.
Example
Menu m = notepadWindow.GetTopMenu();
IList<MenuItem> mitems = m.Items;
foreach(MenuItem item in mitems)
{
WriteMessage("isChecked = " + item.IsChecked);
WriteMessage("name=" + item.Name);
Menu subMenu = item.SubMenu;
...
}
Related: