Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a simple SDI application
Message
From
23/08/2000 20:01:21
 
 
To
23/08/2000 14:08:48
General information
Forum:
Visual C++
Category:
Microsoft Foundation Classes
Miscellaneous
Thread ID:
00408371
Message ID:
00408573
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform