• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

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
0
kishori
Asked:
kishori
1 Solution
 
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now