ViewMenus()

Syntax

ViewMenus()

Remarks

Returns a value that indicates which menu bar is displayed: the full menu bar when a document window is open, or the abbreviated menu bar when no document window is open. You can use ViewMenus() as an alternative to CountWindows() to determine whether at least one document window is open.

Value

Explanation

0 (zero)

If the full menu bar is displayed

1

In Windows, if only the File, Help, and application Control menus are displayed; on the Macintosh, if only the Apple, File, Help, and Application menus are displayed. Note that other menus may be available if they've been added with ToolsCustomizeMenuBar


Note

These values correspond to values allowed for the .MenuType argument when you customize menus with ToolsCustomizeMenus and ToolsCustomizeMenuBar.

See Also

ToolsCustomizeMenus, ToolsCustomizeMenuBar