CTabCtrl help
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I have a problem re tab control. I use onClick to detect a user selection but onClick gives me the last tab and not the selected tab. I have tried using TCN_SELCHANGE but this one does not reflect any changes. I have actually used this method with vc6 and it works. But its not working on the VS2003. UpdateData(TRUE); ctab = m_tab.GetCurSel(); // ctab is to display the selected tab id // refreshing of the appropriate tab details is done here switch(ctab) { case 0://refesh tab 0 break; case 1;// refresh tab 1 break;// ...etc } UpdateData(FALSE); anyone know what might be the problem? Thanks. Thomas