I am trying to create an owner drawn CTabCtrl to change the background
color, tab item font...etc. I have been using
http://www.codeguru.com/cpp/controls/controls/tabcontrols/article.php/c2237/
as reference for change tab item text font. But I find a problem, when
I set a larger font size, the text font changed but the tab item size
remains the original size. Even if I set its new size, it only changes
the height, not the width. Anybody had this problems before, any help
is very much appreciated.
//my code snippet is as following
CSize newSize(400,48); //change 400 to bigger number does do
any difference
m_tabCtrl.SetItemSize(newSize);
CFont font;
font.CreateFont(-8, 0, 0, 0, 700,0,0,0,1,0,0,0,0,_T("Arial"));
m_tabCtrl.SetFont(&font);
Thanks in advance
-rockdale
http://www.codeproject.com/KB/tabs/customtab.aspx?msg=890365#xx890365xx
SetItemSize() seems to work for changing vertical height only. For
horizontal width, 'SetMinTabWidth()" seems to work OK.
-SM