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 derfloh 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 add a new menu to a window?

Status
Not open for further replies.

elkano

Technical User
Joined
Jun 2, 2003
Messages
1
Location
NZ
I need to add a new menu to a window. Please help as I am a complete newbie (obviously).
I have created the menu but cannot see it when I build the project. how do I link the menu to the window so it is visable when I build/run it?
Thanks..
 
When you create the window with CreateWindow or CreateWindowEx, supply the HMENU of the menu as the hMenu parameter.

You can get the HMENU as the return value of LoadMenu API.

I REALLY hope that helps.
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top