Hi,

need to know the size of my menubar, but got a problem with GetMenuBarInfo:
after the function call MENUBARINFO.rcBar is not initialized, and the returncode = false.
The errorcode returnde by GetLastError = 0.

I think I'm using a wrong argument, but which one?

HWND hWnd = <handle of the TopWindow that owns the menuBar>
LONG lObject = OBJID_MENU
LONG lItem = 0
MENUBAR.cbSize = sizeof(MENUBAR)

What could be wrong? Do I have to use the windowhandle of the menuBar instead of the TopLevelWindow? And if so, how to get it?

Thanks in advance
Best regards
testalucida