Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What’s the relationship between MainMenu and MenuStrip?

0
Posted

What’s the relationship between MainMenu and MenuStrip?

0

MenuStrip is a complete replacement for MainMenu and has nothing in common with that control. The old MainMenu was built on top of the built-in Windows support for menus. The GetClientRect() API function automatically deducts the menu size from the client rectangle. MenuStrip doesn’t use Windows menus, thus GetClientRect() returns the size of the window’s client area, disregarding the space taken up by the MenuStrip. The same is true for any other window edge adornments like StatusStrip and ToolStrip, or any docked panels for that matter.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123