m_pRepTelForm = new CRepTelForm; m_pRepTelForm->Create (IDD_REPTEL); CRect clsRect; GetClientRect (clsRect); m_pRepTelForm->CalcWindowRect (&clsRect); m_pRepTelForm->MoveWindow (CRect (2, 2, clsRect.Width() - 2, clsRect.Height() - 2)); m_pRepTelForm->ShowWindow (SW_SHOW);The pages are added to the tab control in the OnInitDialog() of the dialog associated class. Here is the code:
TCITEM tcItem; tcItem.mask = TCIF_TEXT; tcItem.pszText = _T ("&Liste"); m_Tab.InsertItem (0, &tcItem); tcItem.pszText = _T ("&Détail"); m_Tab.InsertItem (1, &tcItem);The dialog and the tab control display correctly and I can actually change tabs with the keyboard. The problem I now face is that the tab control won't react to mouse clicks. I can't change tabs with the mouse.