|
-
January 11th, 2009, 07:59 AM
#1
GetMenuBarInfo: no result
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|