Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I draw a MenuBar using API

Status
Not open for further replies.

LuckyLuke

Programmer
Mar 28, 2001
188
NL
Hi,

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.

Please help me out.

Thank you very much :)

LuCkY
 
OK, I have found this new thing;

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!

LuCkY
 
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?

LuCkY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top