Deepu Antony wrote:
Is there any solution.
First lets try to get into the same code. If you have Visual Studio 2008 and have installed the samples navigate to the following folder: Microsoft Visual Studio 9.0\Samples\1033\AllVCLanguageSamples\C++\MFC\advanced\mtmdi Open this project and find the Bounce.cpp file. In the OnCreate function add:CWnd *pParent = GetParent(); CMenu* pMenu = pParent->GetSystemMenu(FALSE); if (NULL != pMenu) { pParent->ModifyStyle(WS_CAPTION|WS_MAXIMIZEBOX ,0,0); pParent->ModifyStyle(WS_THICKFRAME, 0, 0); pParent->ModifyStyle(0,WS_CAPTION,SWP_FRAMECHANGED); }
And in the PreCreateWindow function add:cs.style &= ~WS_THICKFRAME;
This should cause the MDI window to be non-resizable and the Maximize/Restore grayed out. If you have another version of Visual Studio let me know and we can change samples. Best Wishes, -David Delaune