Remove Item from Window List
Hello Guys. Prob not possible... but is there any way not through the API to remove a form from the File Menu Windowed List... I have some toolbars that are going to stay up there the whole time anyways, so having them just out of the window list makes perfect sense.
If it can't be done w/o api, what is the code.
Re: Remove Item from Window List
In the menu editor just make sure you dont have any top level menus checked under "WindowList". That will remove the entire "Window" menu item.
Re: Remove Item from Window List
No that's not what I'm talking about... I have a MDI Parent. I have childs spontaneously generated. I also have some static forms that exist by default... these are the toolbars. I want everything but the toolbars to show in the Window List. Is this possible?
Re: Remove Item from Window List
You mean Dialog Toolbox Windows that will sit on top off all windows in your app or actual toolbars like in IE for navigation?
Re: Remove Item from Window List
If you mean always on top Toolbox windows then set the Toolbox window forms MDIChild property to False so it wont get listed in the Window List.
Re: Remove Item from Window List
That works, but I still want it to appear to be a MDI Child. Is there some sort of hack for this?
Re: Remove Item from Window List
Hmm, maybe you could try the RemoveMenu API but since the Window menu is automatic it may just get re-added everytime a mdi child form is opened.
Re: Remove Item from Window List
ok I will check into that... thanks. Even if I need to set it to a timer or such that may work.
Re: Remove Item from Window List
Instead of a timer draining resources you could try subclassing your main MDI form and trap the WM_INITMENUPOPUP for when a top level menu is clicked in preparation of displaying a submenu.