-
What is a menu?
This question has been bugging me for some time now. What exactly is a menu?
Is it a separate window (has a registered window class, window procedure)?
Or is it somehow part of it's parent window's non-client area?
This blog entry sparked my interest.
[edit]
After some crazy right-clicking and using Spy++, I have discovered that menus are indeed separate windows with the window class name "PopupMenu".
[/edit]
-
There are different types of menus, though it is a bit hard to figure out specifically what you're talking about. There's drop down menus as form elements, menus like the 'File' and 'Edit' menus, and then there's the kind you right click, which I think are called pop-up menus.
-
I'm talking about menus created with CreateMenu() and CreatePopupMenu().
-
Yes,
and I wander now what GetFocus() returns when menu bar has a focus?!
Like, when I just press alt key without any other letter-key.
-
I think the menu bar is drawn by the owner window.
The menus themselves are probably separate windows.