Skip to main content
Version: Next

Menu bar height

Menu bar height -> Function result

ParameterTypeDescription
Function resultLongint🡐Height (expressed in pixels) of menu bar (returns zero if menu bar is hidden)

Description

Menu bar height returns the height of the menu bar, expressed in pixels.

The command returns 0:

  • if the menu bar is hidden
  • in SDI mode on Windows, if it is called from a process without a form window. For more information on this mode, please refer to the SDI mode on Windows section.

Note: When the application is running in SDI mode on Windows, Menu bar height returns the height of a single menu bar line even if the window is narrowed and the menu bar has been wrapped on two or more lines.

See also

HIDE MENU BAR
Menu bar screen
SHOW MENU BAR