|
-
Jul 2nd, 2005, 09:06 AM
#1
Thread Starter
Lively Member
how to create new menu items in runtime?
how to create new menu items in runtime?
-
Jul 2nd, 2005, 06:42 PM
#2
Junior Member
Re: how to create new menu items in runtime?
I dont think you can create NEW menu items at runtime, but you could do an MRU-type thing, wherein the captions and visibility change, but the code does not.
-
Jul 2nd, 2005, 06:44 PM
#3
Re: how to create new menu items in runtime?
Can you create a whole bunch of "hidden" menu items that you can enable at run time as you need them?
[edit] - mikewitt - I guess that's what you just suggested!
-
Jul 3rd, 2005, 03:07 AM
#4
Re: how to create new menu items in runtime?
You need the API's GetMenu, GetSubMenu, and InsertMenuItem. That way you are not limited by the number of invisible menus you create at design time. However, it is not exactly a piece of cake to do, as you then need to subclass to receive the messages from the menus you just created, otherwise they will be useless.
-
Jul 3rd, 2005, 02:36 PM
#5
Thread Starter
Lively Member
Re: how to create new menu items in runtime?
thx, I have solved the problem with VBACCELERATOR menu component (very very goood)
thx , anyway
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|