0
votes

Is it possible to remove the close window decoration from an mdi document taskbar flyout window? That is, remove the red "x" to prevent the user from closing the document via the taskbar.

1

1 Answers

0
votes

Try this in your window:

CMenu* pSysMenu = this->GetSystemMenu(FALSE);
pSysMenu->RemoveMenu(SC_CLOSE,MF_BYCOMMMAND);