This code confused me a lot. while we need a control varible why we make a control class first, and these classes change nothing. From my previous knowledge we can just use original class for control varible declarition. Or I have made mistakes in former?
//nestedclassesforsomeofthisdialog's child windows//thatrequirenochangesfromthebaseclass//(nestingisoptional--it's done here to keep the IDE's//classviewtidy)classCMyComboBox : publicCComboBox {};classCMyListBox : publicCListBox {};classCMyProgressBar : publicCProgressBar {};classCMyRichEdit : publicCRichEdit {};classCMySlider : publicCSlider {};classCMyMonthCalendar : publicCMonthCalendar {};classCMyDateTime : publicCDateTime {};
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes we can just use the original class for the member variable. Typically though its it preferable to override the original class so it can be easily modified when we develop our own dialogs. The code here provides the overridden classes as a starting point for future modifications.
Best regards,
David Nash
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This code confused me a lot. while we need a control varible why we make a control class first, and these classes change nothing. From my previous knowledge we can just use original class for control varible declarition. Or I have made mistakes in former?
Hi Erik,
Yes we can just use the original class for the member variable. Typically though its it preferable to override the original class so it can be easily modified when we develop our own dialogs. The code here provides the overridden classes as a starting point for future modifications.
Best regards,
David Nash
Thank you David, I will try to find the scenario.