#include "MyTab.h" class MyDialog: public CDialog { virtual BOOL OnInitDialog(); private: afx_msg void abc(); static void MyFunction( int, unsigned int); public: MyTab m_cTab; //do this }
bool MyDialog::OnInitDialog() { CDialog::OnInitDialog(); m_cTab.Init(); //here call to MyTab's method successfully. }
class MyTab :public CTabCtrl { void Init(); }
void MyTab::Init() { // do something }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)