Solved

CDialog inside a CMDIChildWnd

Posted on 1998-05-13
2
629 Views
Last Modified: 2012-05-05
I have created a Dialog as a child of a CMDIChildWnd derived class.
Everything seems to work fine, but the look isn't good at all.
You can't notice that the border of the CMDIChildWnd don't match the border of the CDialog.
It seems like the CDialog is not as high as the CMDIChildWnd border and it doesn't look fine.
Everything works great except the look. It like the CMDIChildWnd border and the CDialog be the
same height, and give a look as if both were the same objetc
0
Comment
Question by:apich
[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 Comments
 

Expert Comment

by:jann
ID: 1176901
I'm not quite sure about what you want.  If you want the CDialog and CMDIChildWnd have the same border, set the CDialog property at "no border", so CDialog will use CMDIChildWnd's border.
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
ID: 1176902
Use a CFormView view instead.  This gives you view (like in the client area of other children) but one based on a dialog templated.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

717 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