Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a simple SDI application
Message
De
23/08/2000 20:01:21
 
 
À
23/08/2000 14:08:48
Information générale
Forum:
Visual C++
Catégorie:
Microsoft Foundation Classes
Divers
Thread ID:
00408371
Message ID:
00408573
Vues:
12
Okay, I've redone much of my work and here is the new situation: I created a IDD_FORMVIEW type dialog and insert a tab control in it. This dialog is created and displayed in the CMainFrame::OnCreate() method. Here is the code:
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.

Anyone can point me in the right direction?

TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform