CalcMenuBar - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTUSER_H

// rev
/**
 * The CalcMenuBar routine calculates a window's menu-bar layout metrics.
 *
 * \param WindowHandle Handle to the target window.
 * \param Left Left coordinate boundary.
 * \param Right Right coordinate boundary.
 * \param Top Top coordinate boundary.
 * \param Rect Optional pointer receiving or providing the menu bar bounding rectangle.
 * \returns ULONG The height of the menu bar in pixels, or 0 on failure.
 * \remarks Forwards to the NtUserCalcMenuBar system call.
 */
NTSYSAPI
ULONG
NTAPI
CalcMenuBar(
    _In_ HWND WindowHandle,
    _In_ LONG Left,
    _In_ LONG Right,
    _In_ LONG Top,
    _Inout_opt_ PRECT Rect
    );

#endif

View code on GitHub

NtDoc

No description available.