
January 22nd, 2005, 10:03 AM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
Assuming you're using VC++, all you need to do is:
1. Create a New Class from the second dialog (if you haven't done so already. You can do this using the Class Wizard). I'll assume that the second class is called CSecondDialog
2. In the first dialog, add code like this:
Code:
#include "SecondDialog.h"
...
...
void CFirstDialog::OnButton1()
{
CSecondDialog dlg;
dlg.DoModal();
}
There you have it...
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|