M
Manjree Garg
Hi
I am creating a modeless dialogbox. The problem is in keeping track of it.
How can I keep track of it in CDocument class (CBioSpecDoc) so that I don't
create multiple instance of it when it is still active. When I cancel it; it
destroys it using the OnCancel() function of the dialog box that I override
as follows:
void RbfPropDlg::OnCancel()
{
//m_activeDlg = false;
DestroyWindow();
}
void RbfPropDlg:ostNcDestroy()
{
delete this;
}
If I make RbfPropDlg a member variable of CBioSpecDoc class how can I set it
NULL when OnCancel()????
Cheers.
Manjree
I am creating a modeless dialogbox. The problem is in keeping track of it.
How can I keep track of it in CDocument class (CBioSpecDoc) so that I don't
create multiple instance of it when it is still active. When I cancel it; it
destroys it using the OnCancel() function of the dialog box that I override
as follows:
void RbfPropDlg::OnCancel()
{
//m_activeDlg = false;
DestroyWindow();
}
void RbfPropDlg:ostNcDestroy()
{
delete this;
}
If I make RbfPropDlg a member variable of CBioSpecDoc class how can I set it
NULL when OnCancel()????
Cheers.
Manjree