By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,960 Members | 990 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,960 IT Pros & Developers. It's quick & easy.

Adding a menu on the fly

P: n/a
Hi,

I know to add a menu entry on the fly using AppendMenu(...) and i know how
to remove it using RemoveMenu(...)
I can even create a popup menu on the fly but the question is how do i
remove it?

HMENU hmenupopup= CreateMenu();
AppenMenu( hmenupopup, flags);
AppenMenu( hmenupopup, flags);

then the main menu
AppenMenu( hmenu , flags, (UINT)hmenupopup, ... );

Thanks
Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Sims,

Shouldn't you rather use MainMenu and ContextMenu classes?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Sims" <si*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I know to add a menu entry on the fly using AppendMenu(...) and i know how
to remove it using RemoveMenu(...)
I can even create a popup menu on the fly but the question is how do i
remove it?

HMENU hmenupopup= CreateMenu();
AppenMenu( hmenupopup, flags);
AppenMenu( hmenupopup, flags);

then the main menu
AppenMenu( hmenu , flags, (UINT)hmenupopup, ... );

Thanks

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.