
modeless dialog doesnt work in tab control
Quote:
>-----Original Message-----
>> i have a modeless dialog that should display on top of
the
>> tab control. it doesnt. here's what i have
>> CWnd * m_pParent;
>> int m_nID;
>> CTabCtrl m_tabControl;
>> when i press on the tab control selection i create the
>> dialog:
>> CRect rect;
>> GetClientRect(rect);
>> then
>> m_tabControl.Create(WS_VISIBLE , rect,
m_pParent,
>> m_nID);
>> This is my code. There is a problem with create.
>> please tell me what i'm doing wrong and give EXAMPLE.
>> thanks
>> overwhelmed!!!!!!
>There is no dialog anywhere in this code. It is trying
to create a tab
>control when the tab control is clicked :)
>Usual practice is to create the dialog(s) at the same
time you create
>the tab control, with only one of them visible. When the
tab is clicked
>make a different one visible.
>--
>Scott McPhillips [VC++ MVP]
>.
now i changed the m_tabControl to the modeless dialog
pointer
CModeless1 *dlg1;
dlg1 = new CModeless1();
dlg1->Create(IDD_DIALOG1, this);
dlg1->ShowWindow(SW_SHOW);
when i am clicking on the tab. the modeless dialog is not
displayed on the tab control. how do i code it to make
sure that it is displayed on the tab control and not on
the desktop?