Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / November 2003

Tip: Looking for answers? Try searching our database.

dynamically changing the menu !

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vinod - 20 Nov 2003 11:20 GMT
hi there ,
i am trying to develop an application where i have to
change the menu dynamically . i am new to mfc
programming . is there any chance of doing do . if so ,
how can i do it .

regards ,
vinod
Chris Taylor - 20 Nov 2003 13:13 GMT
Hi,

This would be better answered in one of the MFC groups. However.

You can call GetMenu() on the main window, to get the main window you can
call AfxGetMainWnd(). GetMenu() will return a CMenu* which you can then use
to modify the menu using AppendMenu, ModifyMenu, RemoveMenu and to get the
sub menus use GetSubMenu(). After your modifications it is recommened to
call the windows DrawMenuBar().

Hope this helps

Chris Taylor
> hi there ,
>  i am trying to develop an application where i have to
[quoted text clipped - 4 lines]
> regards ,
> vinod
vinod - 20 Nov 2003 14:12 GMT
thanks chris :)
>-----Original Message-----
>Hi,
[quoted text clipped - 20 lines]
>
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.