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
Solved

Connecting Dialog Boxes for outside Files

Posted on 1998-08-07
3
158 Views
Last Modified: 2013-11-20
I have created several dialog boxes in their own files not in the same one and I want to connect them together.  One dialog box is a menu and I want to connect that box to another box which is a screen I made. How do I do this?
Thanks!
0
Comment
Question by:troy24
  • 2
3 Comments
 
LVL 1

Expert Comment

by:slinky
ID: 1320401
I'm not sure what you are trying to do.
more details?
0
 
LVL 1

Accepted Solution

by:
joakimf earned 0 total points
ID: 1320402
Alright, lets say you want to connect them in MyFile.cpp this is what you do:

In MyFile.h add the following:

CMyDialog m_MyDialog;  //Where MyDialog is the name of your Dialog class

Then in MyFile.cpp add the following:

m_MyDialog.DoModal();

This opens MyDialog and then you have to handle the events in the CMyDialog.cpp file.

You can practicly open how many of this Dialog as you like by doing it this way.
Just replace CMyDialog with your Dialogs name.

Good luck....
0
 
LVL 1

Expert Comment

by:joakimf
ID: 1320403
I´m sorry I forgot one important thing. You must include MyDialog.h in MyFile.h otherwise you will get error because CMyDialog will be unidentified......

Just type

#include "MyDialog.h"

above your CMyFile class....
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

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 126
FizzBuzz challenge 9 82
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 342
Making an alias 7 101
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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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