General information
Title:
Dynamic Menus in a class
I am trying to create an exe that loads it's menus based on the dll's that are in a specific directory. The program finds the dlls on load and calls a method that would create a new menu or add a menu item to a menu that already exists.
For example the program finds a dll with the clsSaveFile class in it. The class has a CreateMenu method that the main program calls. I want the CreateMenu method to check for a file menu in the main programs form and if there is not one I want the class to create one and add the Save File item to the menu. If there is already a file menu I want the class just to add the Save File item to the already existing menu.
I also want the code that is executed by clicking on the menu item to be stored in the dlls.
Anybody have any ideas?
Thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only