Solved

CChildFrame frame border

Posted on 2004-10-08
4
565 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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