How to resize CTabCtrl buttons?

How to resize CTabCtrl buttons?

Post by mati » Sat, 08 Apr 2006 21:37:14


Hi

I want to resize tabs(buttons) on my owberdraw tab control. Is there any way
to catch the window on which those buttons are placed? Maybe there are some
other tricks to make those buttons smaller?

thanks
 
 
 

How to resize CTabCtrl buttons?

Post by Martin Ric » Tue, 11 Apr 2006 16:39:13

Hallo mati!


No! The layout is done by the control itself.
You can use the fixed style (TCS_FIXEDWIDTH) and TCM_SETITEMSIZE, or
ownerdraw tabs.

--
Martin Richter [MVP] WWJD
"In C we had to code our own bugs. In C++ we can inherit them."
FAQ : http://www.yqcomputer.com/
Samples: http://www.yqcomputer.com/ http://www.yqcomputer.com/