Urgent!! CpropertySheet

Hi
I want to put the tabs in a property sheet to be displayed Vertically ,instead of them being displayed horizontally by default,and also i want the tab title or tab name to be displayed Horizontally ...I am able to do the vertcial placement of a tab control in a dialog by assigning the tab control style as TCS_VERTICAL,but the text also appears as vertical ,i want the text to appear as Horizontal and all this to work in a Propertysheet....The UI should have following look...
       ________________________________       |
      |Page 1
      |________
             |
       ________|      
      |       |
      | Page 2 |
      |________|
             |      
       ________|                   
       |        |
      | Page 3 |
      |________|      
             |
                 |
             |______________________      

bhoomi_2000Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
krispConnect With a Mentor Commented:
Hi,
  I have used the following code in OnInitDialog() of my CPropertysheet class.
-------------------------------------
CTabCtrl* tabCtrl = GetTabControl();
tabCtrl->ModifyStyle(NULL,  /*TCS_RIGHTJUSTIFY|TCS_FORCELABELLEFT|*/TCS_VERTICAL,NULL);

CSize size(20,20);
tabCtrl->SetPadding( size );
----------------------------------------
Your requirement is met. But initially when the Property sheet is shown the tab control texts are not shown. When you press "Ctrl + tab", the tabs are shown as per the requirement you mentioned.
Hope this will help you.

cheers.

0
 
bhoomi_2000Author Commented:
Thanks for the Answer,but it leaves a lot of work to Do ,as you have to resize the Tabs ,so the other solution would be to have a Owner Drawn Tab,with
tab control as TCS_OWNERDRAWNFIXED ,these has more work ,but leaves with the option of better control
0
All Courses

From novice to tech pro — start learning today.