edmz
August 11th, 1999, 04:56 PM
I modified a TabCtrl of a PropertySheet so that it is Multiline and FixedWidth. I did this by :
GetDlgItem(AFX_IDC_TAB_CONTROL)->ModifyStyle(0, TCS_FIXEDWIDTH | TCS_MULTILINE);
and then i modified the width of the Control with the following code :
GetDlgItem(AFX_IDC_TAB_CONTROL)->SendMessage(TCM_SETITEMSIZE, 0, MAKELPARAM(210, 20));
When i run the program, i get the 6 tabs. 3 tabs are in the front line and the rest in the back one.
The problem is that somehow the TabCtrl still
thinks its one line, and thus, the first PropertyPage
gets drawn over the set of tabs that is on the
front. When i click on another tab, the control
realizes it has 2 rows of tabs and now draws
the PropertyPage correctly.
Any idea on what is wrong ?
GetDlgItem(AFX_IDC_TAB_CONTROL)->ModifyStyle(0, TCS_FIXEDWIDTH | TCS_MULTILINE);
and then i modified the width of the Control with the following code :
GetDlgItem(AFX_IDC_TAB_CONTROL)->SendMessage(TCM_SETITEMSIZE, 0, MAKELPARAM(210, 20));
When i run the program, i get the 6 tabs. 3 tabs are in the front line and the rest in the back one.
The problem is that somehow the TabCtrl still
thinks its one line, and thus, the first PropertyPage
gets drawn over the set of tabs that is on the
front. When i click on another tab, the control
realizes it has 2 rows of tabs and now draws
the PropertyPage correctly.
Any idea on what is wrong ?