Link to home
Start Free TrialLog in
Avatar of LukaKrop
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::PreCreateWindow(CREATESTRUCT& cs)
{
      // TODO: Modify the Window class or styles here by modifying
      //  the CREATESTRUCT cs
      cs.style&=~(FWS_ADDTOTITLE | WS_THICKFRAME);

      //cs.dwExStyle|=WS_EX_CLIENTEDGE;
      if( !CMDIChildWnd::PreCreateWindow(cs) )
            return FALSE;

      return TRUE;
}

thank you for your help
Avatar of LukaKrop
LukaKrop

ASKER

Sorry forgot to add:

It must be sizable!!!

thnx
ASKER CERTIFIED SOLUTION
Avatar of Member_2_1001466
Member_2_1001466

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Which style shoul I change to become a MDIChild window with very thin border, title, sizable.

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).