April 9th, 1999, 09:33 AM
hello,
if you have a solution to my problem, my email :
dao2@col.bsf.alcatel.fr
I don't know how customize the number of tabs into a multiline in cDialog window ?
And, thus do like a carriage control on the end of each line !!!!
Now, I use a string table for each title :
BOOL CAdmDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Tab labels
Label.LoadString(IDS_STR_TAB_TITLE1);
tcItem.pszText = Label.GetBuffer(0);
m_TabControl.InsertItem(TAB_TITLE1, &tcItem);
Label.LoadString(IDS_STR_TAB_TITLE2);
tcItem.pszText = Label.GetBuffer(0);
m_TabControl.InsertItem(TAB_TITLE2, &tcItem);
Label.LoadString(IDS_STR_TAB_TITLE3);
tcItem.pszText = Label.GetBuffer(0);
m_TabControl.InsertItem(TAB_TITLE3, &tcItem);
...
}
For example :
2 tabs in line 1
4 tabs in line 2
and 1 tab in line 3
-----------------------------
|....title1...|....title2...|
-----------------------------
|title1|title2|title3|title4|
-----------------------------
|..........title5...........|
-----------------------------
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
-----------------------------
thinks for your answer
if you have a solution to my problem, my email :
dao2@col.bsf.alcatel.fr
I don't know how customize the number of tabs into a multiline in cDialog window ?
And, thus do like a carriage control on the end of each line !!!!
Now, I use a string table for each title :
BOOL CAdmDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Tab labels
Label.LoadString(IDS_STR_TAB_TITLE1);
tcItem.pszText = Label.GetBuffer(0);
m_TabControl.InsertItem(TAB_TITLE1, &tcItem);
Label.LoadString(IDS_STR_TAB_TITLE2);
tcItem.pszText = Label.GetBuffer(0);
m_TabControl.InsertItem(TAB_TITLE2, &tcItem);
Label.LoadString(IDS_STR_TAB_TITLE3);
tcItem.pszText = Label.GetBuffer(0);
m_TabControl.InsertItem(TAB_TITLE3, &tcItem);
...
}
For example :
2 tabs in line 1
4 tabs in line 2
and 1 tab in line 3
-----------------------------
|....title1...|....title2...|
-----------------------------
|title1|title2|title3|title4|
-----------------------------
|..........title5...........|
-----------------------------
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
|...........................|
-----------------------------
thinks for your answer