Solved

Connecting Dialog Boxes for outside Files

Posted on 1998-08-07
3
154 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
NotAlone Challenge 20 72
sumHeights2  challenge 7 78
changeXy challenge 13 58
wordmultiple challenge 12 92
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now