Has anybody encountered this issue?
I am using MFC on an MDI application. I switch between menus using SetMenu() but has the side effect of system menus (Maximize, Minimize, Close buttons) disappearing when I maximize the child windows.
CMenu* pMenu = GetMenu();
if (pMenu == NULL) return;
pMenu->Detach();
// Reset application menu
CMenu newMenu;
newMenu.LoadMenu(menuID);
SetMenu(&newMenu);
If I don't call SetMenu(), the issue does not happen.