About CTabCtrl...

My question is about CTabCtrl. When you put it on a dialog template in CTabCtrl properties->more styles you can set the style when all the tabs may be placed at the bottom of the control(at the top is default)like that of the Workspace
window(tabs FileView,ClassView and resourcesView).
  How can I do that creating a control
on my own, if I want to put it on the View,for example,or using CPropertySheet
kishoriAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZoppoCommented:
Hi kishori,

Since your program is using ComCtl32.dll Version 4.7 or higher (i.e. with Windows Internet Explorer 3.0 or higher) you can use the TCS_BOTTOM style for CTabCtrl.
I'm not sure if this works with CPropertySheet also, you'll have to try it ...

hope this helps,

ZOPPO
0
akalmaniCommented:
Hi !!
   Create a member variable of CTabCtrl and use
the ModifyStyle() function to set the prperties of the TabCtrl
and use TCS_BOTTOM to set it or u can also try with
SetExtendedStyle() function to set the properties.
0
bhatCommented:
Hi

U can use the following in the oninitdialog of the prpoerty sheet

BOOL CSHeet :: OnInitDialog()
{
 BOOL bResult = CPropertySheet::OnInitDialog();
 CTabCtrl*  pControl = GetTabControl();
 pControl->ModifyStyle(0,TCS_BOTTOM);
return bResult;
}

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.