Solved

Dialogs within Dialogs

Posted on 1998-11-10
4
293 Views
Last Modified: 2013-11-20
I am considering the design for an object.  I want to have dialogs A, B, and C.  A and B are different, and C is essentially A and B together on one window.  Can I just make dialog C have pieces A and B as dialogs that are basically controls of dialog C?  I mean, A and B are still separate dialogs, but are also pieces of dialog C so I can avoid duplicating code that will need to be written for A and B when they are alone, and the A and B functionality of C?
0
Comment
Question by:appleby
[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
4 Comments
 
LVL 2

Expert Comment

by:jstolan
ID: 1324469
You can make dialogs A and B as property pages.  Then you can have a property sheet that adds either A, B or both A and B as it's property pages.  This will do most of what you want.  The only difference is that when both A and B are displayed, they will be in the tabbed format, rather than side by side.  

In addition, it has the virtue of being something with extensive support in Visual C++ and MFC.  It's always easier to work with the system.  :)
0
 

Author Comment

by:appleby
ID: 1324470
Tabbed format is unacceptable for what I need.  They have to appear side by side.
0
 
LVL 1

Accepted Solution

by:
arunprakash earned 50 total points
ID: 1324471
Here is what u want,
 Make A & B as no Border,Child,Control,NoTitle bar.
 The C now should be derived from CWnd.
 Create A & B in the CWnd in correct positions.(Modeless Mode)
 with parent as C. Now A and B are child controls for C(so that only A&B are marked as child).
 This will make it appear as the single dialog.

 When u need to display A&B as seperate dialogs add the above removed styles manually
 by Modifystyle.

Thanx ,
bye
0
 

Author Comment

by:appleby
ID: 1324472
After I use ModifyStyle, since Create has already been called, the changes don't show up.  Any idea how to force them to?  I get no borders or anything, so it shows up by itself but can't be resized, moved, or anything.  Any ideas?  I'll consider reopening as a new question...
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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 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