Need a little help here about MFC and Tab Control stuff...
I finally figured out how to get a CTabCtrl to display different pages, with the use of an overridden CTabCtrl class. However, now I'm just a little confused as to how to fill and retrieve various controls on different tab pages.
I've got all the dialogs that the tabs are going to display in a vector (vector<CDialog*> m_Dialogs;). However, I got mixed up as to how I am supposed to fill these fields (I need to pass then the reference of a class, and there will be different classes for different dialogs). And then, how can I retrieve the dialog's data when the user presses "OK" on the main screen where the actual tab control is held?
Because I've put all the dialogs in a vector of CDialog, all their member variables do not exist in the CDialog datatype, so I have no way of accessing them. How can I resolve this?
I've been trying to look into this on google, but every tutorial I've come across only shows how to display different dialogs on a tab control, and not how to access the controls in the dialogs...
Any help regarding this problem will be greatly appreciated.
Thanks in advance,