Solved

CChildFrame frame border

Posted on 2004-10-08
4
558 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:LukaKrop
  • 2
  • 2
4 Comments
 

Author Comment

by:LukaKrop
ID: 12258117
Sorry forgot to add:

It must be sizable!!!

thnx
0
 
LVL 13

Accepted Solution

by:
SteH earned 500 total points
ID: 12258420
have you tried the solution given in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Changing_the_Styles_of_a_Window_Created_by_MFC.asp
You need to derive a class from MDIChildWnd where you do the coding you showed.
0
 

Author Comment

by:LukaKrop
ID: 12264655
Which style shoul I change to become a MDIChild window with very thin border, title, sizable.

thnx
0
 
LVL 13

Expert Comment

by:SteH
ID: 12274665
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).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Installing Microsoft R server on REDHAT or SUSE Linux 4 131
iSeries DB2 Query 2 90
while loop over for loop 7 92
"Black Box" Testing of Control System Software 2 22
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now