Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding a dropdown menu

Status
Not open for further replies.

Zyrenthian

Programmer
Mar 30, 2001
1,440
US
I am currently working on a program that uses a choice of 2 3rd party software programs. The second 3rd party software has been recently added. What was done originally was RemoveMenu was called on the dropdown menu if the 3rd party software was not licenced. The design of the program specified that the preferences dialog should control which third party software menu to show. This was ok for one 3rd party software but with two it caused problems. What I tried to do was call RemoveMenu on the menu that was not going to be used. However, if they changed the preferences, I could not get the previously removed menu back.

Situation:

Program utilized 3rd party software x & y.
The default menu contains menus for both x & y
On load, x or y is removed depending on preferences
(lets say x was removed)
When the program runs only menu y is visable
User changes preferences to x
Menu y is removed and because x was removed prior no menus are visable.

I found a possible work around where I dynamically determine the name of the menu and adjust it accordingly based on registry values selected in the preference dialog. What I wanted to know is:

Is this the correct way to go or is there a way to re-insert a removed menu? If there is a way to re-insert a removed menu should I go about it that way or should I continue along the dynamic renamming path?

Any ideas would be helpful.

Thanx in advance,
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top