-
February 6th, 2007, 03:00 PM
#1
MFC SDI and Dialog Boxes
I want to create an application that has 5 dialog type windows in an SDI format. I need the dialog tabs so that the user can click on the different dialog window tab. Furthermore, I can not have any two dialog boxes visible at any one time.
Using the project wizard, I chose an SDI application and created 5 dialog boxes. I used InitDialog to maximize each Window.
Unfortunately, only the active dialog window shows. I can't see the other four windows in a tab-type style.
What am I doing wrong?
-
February 6th, 2007, 03:06 PM
#2
Re: MFC SDI and Dialog Boxes
Any reason you need SDI? Sounds like you want a basic dialog app, but instead of a main dialog window, use a CPropertySheet.
-
February 6th, 2007, 03:08 PM
#3
Re: MFC SDI and Dialog Boxes
May be you find this interesting.
-
February 6th, 2007, 03:12 PM
#4
Re: MFC SDI and Dialog Boxes
The app needs a menu bar.
Each dialog is a sub app in and of itself.
It needs the ability to full desktop maximize and minimize (although I can work around it.)
I am using a menu View option where the view selection activates each dialog box.
-
February 6th, 2007, 03:15 PM
#5
Re: MFC SDI and Dialog Boxes
Originally Posted by werpa
Each dialog is a sub app in and of itself.
What do you mean by that?
-
February 6th, 2007, 03:15 PM
#6
Re: MFC SDI and Dialog Boxes
Ejaz: Thanks for the link. It looks like a solution using CControlBar.
-
February 6th, 2007, 03:18 PM
#7
Re: MFC SDI and Dialog Boxes
GCDEF: Each dialog box is modal because it displays results from a separate engine running beneath the dialog. Only one of the 5 engines can run at any one time. The SDI ties the different engines together; but the engines can't be linked -- thus the need for 5 modal dialog boxes.
-
February 6th, 2007, 06:05 PM
#8
Re: MFC SDI and Dialog Boxes
5 modal dialog boxes?
You cannot have multiple numbers of modal dialog boxes and access all at any time. Only one is accessible while the rest stay disabled.
Besides, how do you create 5 modal dialogs? From a timer? Message handler?
I think you are referring to modeless dialogs and furthermore I suspect that they are not dialogs but views derived from CFormView.
Please correct me if I am wrong.
There are only 10 types of people in the world:
Those who understand binary and those who do not.
-
February 7th, 2007, 02:07 AM
#9
Re: MFC SDI and Dialog Boxes
WERPA: i agree with Johncz...why dont you create modeless dialog boxes and update their contents at run time. Each showing and updateing a shared/interlinked data in its own controls.
-
February 7th, 2007, 03:28 AM
#10
Re: MFC SDI and Dialog Boxes
Hello,
Either you can use a dialog box application using Propertysheets & Propertypage or use a view structure with tab control.
Regards,
Pravin.
-
February 13th, 2007, 02:11 PM
#11
Re: MFC SDI and Dialog Boxes
Hello everyone:
EJAZ's link above gave me exactly what I wanted: I have five Tabbed Windows in a SDI document. I can easily switch between all five windows be clicking on the tab. No two windows can interact with the user at the same time. I created my windows by inheriting from CView and CFormView.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|