Re: Class to Class data transfer
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Tue, 17 Jan 2006 23:14:02 -0800
donguy76@xxxxxxxxx wrote:
>
>The above code works when the OK button of class A dialog is clicked.
>What if the class A dialog is still active and the class B dialog has
>been opened from inside class A dialog.
Somehow, you have to give your B instance a pointer to your A instance.
There are lots of ways to do that.
void ClassA::StartDialog()
{
ClassB dlg;
dlg.set_A_Instance( this );
if(dlg.DoModal() == IDOK) {
...
}
}
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- References:
- Class to Class data transfer
- From: donguy76
- Re: Class to Class data transfer
- From: Tom Serface
- Re: Class to Class data transfer
- From: donguy76
- Class to Class data transfer
- Prev by Date: Re: GETPROCADDRESS
- Next by Date: Re: Hungarian notation question
- Previous by thread: Re: Class to Class data transfer
- Next by thread: VC2005 EXE's compatible with NT 4.0 SP6a ???
- Index(es):
Relevant Pages
|