MenuItem.OwnerDraw problem

  • Thread starter Thread starter Sérgio
  • Start date Start date
S

Sérgio

I all.
I have an application in an MDI structure. Both, MDIParent and MDIChilds
have Menus and all those menus are OwnerDraw, ie, MenuItem.OwnerDrawn =
true; The problem is when I have more than 1 child windows opened and close
them all, When i close the last one, the menus in the MDI Parent desapeared.
Can any one help me?

Sorry my English (I'm Portuguese).

Thanks
 
MDI Child menu's are merged with the MDI Parent menus. If there are no MDI
children, there will be no child menus. If you want a menu item to be in the
application all the time you have to put it in the parent's main menu and do
the owner-drawing from there also.

--
Bob Powell [MVP]
C#, System.Drawing

The October edition of Well Formed is now available.
Find out how to use DirectX in a Windows Forms control
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com
 
Back
Top