LukaKrop
asked on
CChildFrame frame border
Hello
How can I change the border of MDI Child frame window. I want to achive very thin border, or better border like in forms of VB applications....
I have already tried but no results:
BOOL CChildFrame::PreCreateWind ow(CREATES TRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style&=~(FWS_ADDTOTITLE | WS_THICKFRAME);
//cs.dwExStyle|=WS_EX_CLIE NTEDGE;
if( !CMDIChildWnd::PreCreateWi ndow(cs) )
return FALSE;
return TRUE;
}
thank you for your help
How can I change the border of MDI Child frame window. I want to achive very thin border, or better border like in forms of VB applications....
I have already tried but no results:
BOOL CChildFrame::PreCreateWind
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style&=~(FWS_ADDTOTITLE
//cs.dwExStyle|=WS_EX_CLIE
if( !CMDIChildWnd::PreCreateWi
return FALSE;
return TRUE;
}
thank you for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Which style shoul I change to become a MDIChild window with very thin border, title, sizable.
thnx
thnx
WS_THICKFRAME should be removed. It is then up to you to draw a visible frame which allows the user to identify a place where to size. MFC assumes that thick frames can be resized. But when you design a GUI you are free to change that. There are other applications which to a sizing with a thin border (ie firefox).
ASKER
It must be sizable!!!
thnx