dialog hierarchy from cdialog
I've read many posts related to this topic...I think I understand but wanted to clarify what I think I understand.
Here's my situation:
My class hierarchy is as follows:
SReviewInterestDlg(Dlg template: IDD_REVIEW_INTEREST_DLG)
SReviewDlg(Dlg Template: IDD_REVIEW_DLG)
SDialog
CDialog
SDialog derives from CDialog, SReviewDlg derives from SDialog, SReviewInterestDlg derives from SReviewDlg.
There is a dialog template associated with SReviewDlg and a different dialog template associated with SReviewInterestDlg. There is no dialog template associated with SDialog and of course CDialog.
My application will not have instances of SReviewDlg or SDialog. I will only be creating instances of SReveiwInterestDlg.
My questions:
1)Is it possible to do what I am attempting to do? ie is it possible to have two different dialog templates associated with two dialog classes which have a base class - derived class relationship?
2)Do I have to have any special processing so that the above hierarchy works. From the other posts that I have read, I think I need to make sure the contructors for all the derived dialogs pass the right dialog template.
Thanks very much for helping.
-MD
Re: dialog hierarchy from cdialog
Quote:
Originally posted by mddd
My application will not have instances of SReviewDlg or SDialog. I will only be creating instances of SReveiwInterestDlg.
-MD
If that is the case, why would you need a template for SReviewDlg ?