Implementing a custom Dialogbox
-
Hello all, I am trying to assign a Dialogbox resource to a custom dialogbox class... specifically Anna Meltcafe's CNGWizard (Resizable Wizard) To be very specific, I have to make my PropertySheet belong to CNGWizard class and PropertyPages to CNGWizardPage class. The problem is, I cannot locate CNGWizard nor CNGWizardPage in ClassWizard under MFC ClassWizard as the base class of the dialog. It shows me CPropertyPage just fine, but does not have CPropertyPageEx ! I thought the .clw files had got corrupted again and rebuilt it, but CNGWizardPage nor CNGWizard appears in the controls list of the ClassWizard's "New Class" dialog... I admit to never trying to use custom dialogbox classes before - but I have used custom controls a lot and custom control classnames showup in the ClassWizard just fine ? I am using Visual C++ 6.0, SP5 -- modified at 22:03 Tuesday 25th July, 2006
-
Hello all, I am trying to assign a Dialogbox resource to a custom dialogbox class... specifically Anna Meltcafe's CNGWizard (Resizable Wizard) To be very specific, I have to make my PropertySheet belong to CNGWizard class and PropertyPages to CNGWizardPage class. The problem is, I cannot locate CNGWizard nor CNGWizardPage in ClassWizard under MFC ClassWizard as the base class of the dialog. It shows me CPropertyPage just fine, but does not have CPropertyPageEx ! I thought the .clw files had got corrupted again and rebuilt it, but CNGWizardPage nor CNGWizard appears in the controls list of the ClassWizard's "New Class" dialog... I admit to never trying to use custom dialogbox classes before - but I have used custom controls a lot and custom control classnames showup in the ClassWizard just fine ? I am using Visual C++ 6.0, SP5 -- modified at 22:03 Tuesday 25th July, 2006
As far as i can tell only the MFC base classes are listed in the wizard. just derive the dialog from CDialog, include the cngwizard header, and change the "class classname: public CDialog {" to "class classname: public CNGWizard {" i have only ever replaced CDialog with base classes derived from CDialog.