Fixed Size Formview ???
-
Can anyone tell me how to disable the maximize/minimizebox and the ability to resize from a CFormview object? In other words make the formview look like a regular dialog. I tried to set the settings in my resource to fixed size but the formview still allows me to resize...
-
Can anyone tell me how to disable the maximize/minimizebox and the ability to resize from a CFormview object? In other words make the formview look like a regular dialog. I tried to set the settings in my resource to fixed size but the formview still allows me to resize...
Your should override CChildFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI) method. Within this method set the lpMMI->ptMaxTrackSize and lpMMI->ptMaxTrackSize to size your want your form to be. Best regards, ----------- Igor Soukhov (Brainbench/Tekmetrics ID:50759) igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
-
Your should override CChildFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI) method. Within this method set the lpMMI->ptMaxTrackSize and lpMMI->ptMaxTrackSize to size your want your form to be. Best regards, ----------- Igor Soukhov (Brainbench/Tekmetrics ID:50759) igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
-
Can't I disable or hide the minimize or maximize boxes ??? I tried to remove it from the style in the PreCreateWindow method, but they still appear...
Try it again ;) BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style &= ~(WS_MINIMIZEBOX | WS_MAXIMIZEBOX); if( !CMDIChildWnd::PreCreateWindow(cs) ) return FALSE; return TRUE; } The code above works - the frame window appeared without MAXIMIZE & MINIMIZE buttons. Best regards, ----------- Igor Soukhov (Brainbench/Tekmetrics ID:50759) igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
-
Try it again ;) BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style &= ~(WS_MINIMIZEBOX | WS_MAXIMIZEBOX); if( !CMDIChildWnd::PreCreateWindow(cs) ) return FALSE; return TRUE; } The code above works - the frame window appeared without MAXIMIZE & MINIMIZE buttons. Best regards, ----------- Igor Soukhov (Brainbench/Tekmetrics ID:50759) igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru