Hi experts!
I always call below function in my program. Is it right to always NEW and DELETE it? Also, when I close my child dialog by pressing OK button, my parent dialog doesnt refresh, meaning, my child dialog closes but it leaves a gray shadow in my parent dialog. One more thing, how can i show the dialog in always center of my parent dialog no matter what position my parent dialog is displayed.
void parentDialog::sessionInitialisation()
{
childdialog = new TA_IRS_App::CRadioSessionDialog(this);
childdialog ->Create(IDD_SESSION_DIALOG,this);
childdialog ->ShowWindow(SW_SHOW);
childdialog ->sessionInitialising();
childdialog ->setMovingbar(); ---> acts like domodal until user press ok button
delete childdialog ; --> is this necessary?
childdialog = NULL;
}
I always call below function in my program. Is it right to always NEW and DELETE it? Also, when I close my child dialog by pressing OK button, my parent dialog doesnt refresh, meaning, my child dialog closes but it leaves a gray shadow in my parent dialog. One more thing, how can i show the dialog in always center of my parent dialog no matter what position my parent dialog is displayed.
void parentDialog::sessionInitialisation()
{
childdialog = new TA_IRS_App::CRadioSessionDialog(this);
childdialog ->Create(IDD_SESSION_DIALOG,this);
childdialog ->ShowWindow(SW_SHOW);
childdialog ->sessionInitialising();
childdialog ->setMovingbar(); ---> acts like domodal until user press ok button
delete childdialog ; --> is this necessary?
childdialog = NULL;
}