Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hiding Tabs with CTabCtrl

443 views
Skip to first unread message

durkgod

unread,
Feb 17, 2005, 8:29:04 PM2/17/05
to
Hello,

I am using a CTabCtrl to manage different UI states. These states are
controled by a combo box. I am bassically using the tab ctrl to easily
display the apporpiate child dlg. I would like to hide the "tab" part of the
control, and just show the child dlg. I there a way to do this? I have
tried a quite a few tricks, and none of them seem to work. Any assitence
would be greatly apperciated.

Thank you.

Christopher J. Holland...........................................................................................................

unread,
Feb 18, 2005, 12:59:53 AM2/18/05
to
>>Any assitence would be greatly apperciated.

If your talking about a PropertySheet, then maybe getting the TabControl.
CMyPropertySheet.
CTabCtrl* tab = GetTabControl();

tab->ShowWindo(SW_HIDE);


Good Luck,
--
Christopher J. Holland [!MVP]
http://www.mvps.org/vcfaq/
http://www.codeguru.com
http://www.codeproject.com
http://www.naughter.com/
http://support.microsoft.com/default.aspx
http://msdn.microsoft.com/howto/
http://msdn.microsoft.com/library/
www.flounder.com/mvp_tips.htm

"durkgod" <dur...@discussions.microsoft.com> wrote in message
news:43448237-8713-4089...@microsoft.com...

Johnny

unread,
Feb 18, 2005, 1:44:05 AM2/18/05
to

"durkgod" <dur...@discussions.microsoft.com> wrote in message
news:43448237-8713-4089...@microsoft.com...

Why not dispense with the tabctrl since you are not using it's
functionality?
Instead you could use ShowWindow() with SW_SHOW or SW_HIDE on the child
cotrols you want to display.


0 new messages