Discussion:
CTabCtrl and Tab position
(too old to reply)
Tony
2005-09-15 13:54:25 UTC
Permalink
Hi All

Is it possible to show the tabs of a tab ctrl on the side as opposed to it
being on the top?

TIA

Tony
David Lowndes
2005-09-15 14:09:18 UTC
Permalink
Post by Tony
Is it possible to show the tabs of a tab ctrl on the side as opposed to it
being on the top?
Tony,

Yes, but not with XP themed controls...

"
TCS_VERTICAL
Version 4.70. Tabs appear at the left side of the control, with tab
text displayed vertically. This style is valid only when used with the
TCS_MULTILINE style. To make tabs appear on the right side of the
control, also use the TCS_RIGHT style. This style is not supported if
you use ComCtl32.dll version 6.
"

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Tony
2005-09-15 15:09:30 UTC
Permalink
Hi David,

Thanks for your info.
I found that info just before you sent it, and even though I have tried
implementing those items, the tabctrl is still drawing the tabs on the top.

In my resource settings I have got Mulitline, and Vertical set to False to
begin with as the dlg crashes on launch.

In my TabCtrl init function I then try to use
SetExtendedStyle(TCS_VERTICAL | TCS_MULTILINE | TCS_RIGHT);

The result of this is as above, i.e. the tabs appearing at the top.

Am I using it correctly?

Regards

Tony
Post by David Lowndes
Post by Tony
Is it possible to show the tabs of a tab ctrl on the side as opposed to it
being on the top?
Tony,
Yes, but not with XP themed controls...
"
TCS_VERTICAL
Version 4.70. Tabs appear at the left side of the control, with tab
text displayed vertically. This style is valid only when used with the
TCS_MULTILINE style. To make tabs appear on the right side of the
control, also use the TCS_RIGHT style. This style is not supported if
you use ComCtl32.dll version 6.
"
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
David Lowndes
2005-09-15 15:47:36 UTC
Permalink
Post by Tony
I found that info just before you sent it, and even though I have tried
implementing those items, the tabctrl is still drawing the tabs on the top.
Tony,

Does your application display in XP themed mode - i.e. is it using V6
controls that don't support these styles?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Tony
2005-09-15 14:15:18 UTC
Permalink
Having delved a bit deeper it appears as though I need to use
TCM_SETEXTENDEDSTYLE

All my attempts so far are failing though, so if anyone knows how to
implement the above that would be great.

TIA

Tony
Post by Tony
Hi All
Is it possible to show the tabs of a tab ctrl on the side as opposed to it
being on the top?
TIA
Tony
Loading...