I want to draw a MenuBar using API. How do I do this? I tried to play with the DrawMenuBar function, but this just updates the current MenuBar. The CreatePopUp menu can't create MenuBars as far as I know.
If I draw my own control, lets say a ReBar using CreateWindowEx, there is one parameter hMenu.
So I made a menu with CreatePopupMenu and I got the hMenu, I made some items in it With AppendMenu and I referred the hMenu in the CreateWindowEx, but nothing is happening. It was just a simple guess to do it this way, but if anyone knows if it can be done this way and that I just made a mistake, or if anyone knows another way, please tell me!
Well lucky before replying i want to know what u want to do. What i got is u want to add one menuitem in other application like Notepad and wordpad, if so then reply so that i will try to help u
shirin
What I want is to be able to draw a MenuBar in any command. Like in a rebar. I just want to make a top level MenuBar. If that's not possible, how can I 'convert' a ToolBar so, that it just displays text and doesn't keep place for icons either?
Is there a style constant for it?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.