GetActiveTab return -1

  • Thread starter Thread starter flaviu_
  • Start date Start date
F

flaviu_

Guest
I have an MDI app, with tabs and when I test the active tab the response is always -1: (of course, I have several views opened as tabs)


void CMainFrame::OnWindowManager()
{
CMFCTabCtrl& MFCTabCtrl = GetMDITabs();
TRACE("ActiveTab: %d\n", MFCTabCtrl.GetActiveTab());

ShowWindowsDialog();
}


What I am missing here ?

Continue reading...
 
Back
Top