views:

24

answers:

1

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.

A: 

Try this in your window:

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