Link to home
Start Free TrialLog in
Avatar of vijayk
vijayk

asked on

loading popup menu from resource

hi, i need a right-click menu in my app. if i create the CMenu using CreatePopupMenu() and add the items at runtime, everything works fine. but i'd like to load the menu from the resource. but when i use the Loadmenu() function to load the menu from the resource, it is not being displayed properly. i only get a thin vertical strip whose height depends on the number of items in the menu but whose width is always around 10-20 pixels which is not enough to display the text. please help me out if you know a solution.
--thanks
Rajesh Vijayakumar
ASKER CERTIFIED SOLUTION
Avatar of galkin
galkin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vijayk
vijayk

ASKER

it worked! thanks
i had tried with just the menu bar with all the items (the "View as popup" option in the menu editor had me thinking that internally a menu bar and poup menu are same and that i could use the menubar itself as a popup menu but i was wrong)