简体   繁体   中英

Title bar merging with menu - WINFORMS

I have a MDIContainer form. When the child form is maximized, its title bar is merged with menu.

How can we avoid this merging? That means the child form has to display its title bar in maximized state also.

You can't. This is how the multiple-document interface (MDI) works.

If you don't want this, then you don't want MDI.

Generally speaking, every "real" control in Windows is actually its own window. You can also look at it such that windows are just controls. This means that, if you had the time and patience, you could make your own MDI container using the Windows API by setting the parent of each window to your container control. But having done it, I can guarantee that it will be a real pain, and I make no promise that you will actually get the effect that you want--at least, not without the cost of other problems arising.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM