Hi.

I have a formview with a tab control. Basically, I would like the formview to show different objects depending on which tab the user activates. I have considered using a lot of if/else and enable/disable the objects, but CTabCtrl is a more elegant solution. Thus I am designing the program around CTabCtrl.

There are three formview classes and one tab control.

ViewMain
theTab
ViewChild1
ViewChild2

I added theTab in formview ViewMain. There is not problem there. However, now I cannot figure out how to correspond ViewChild1 and ViewChild2 to the theTab.

I would like to know, Is it valid to create the two childviews from CFormView? If yes, given the design described above, How do you correspond the two childviews to the CTabCtrl object?

Thanks,
Kuphryn