Click here to Skip to main content
15,886,685 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,in my VC program,i used the vertical tab control and cleared the separators between the items.
DWORD dwExStyle= m_tabCtrl.GetExtendedStyle();
m_tabCtrl.SetExtendedStyle(dwExStyle & ~TCS_EX_FLATSEPARATORS);

But at the both side of the position of separators,white shadow appears.I don't know and can't find the reason.
Thanks!
Posted
Updated 3-Mar-11 14:13pm
v7
Comments
LaxmikantYadav 3-Mar-11 23:46pm    
Hi xmandxm, I dont see any problem in code

DWORD dwExStyle= m_tabCtrl.GetExtendedStyle();
m_tabCtrl.SetExtendedStyle(dwExStyle & ~TCS_EX_FLATSEPARATORS);

This will remove the separators that appear between the buttons of your CTabCtrl object.
xmandxm 4-Mar-11 0:29am    
Laxmikant_Yadav,Thanks for your reply.Yes,using the code,the separator can be cleared,but leaving the shadow.I don't know how to paste the pic in my question.The URL: http://topic.csdn.net/u/20110304/00/96e32465-efab-4a10-903d-a251468292d9.html?seed=747019005&r=71944261#r_71944261 shows the question in CSDN.
LaxmikantYadav 4-Mar-11 3:42am    
In which function are you putting the code ? OnInit() is expected function where you can put above code.
And even if shadow present then try to Invalidate client rect.
xmandxm 4-Mar-11 4:21am    
It's inserted in the funtion OnInitialUpdate() of view class. I have tried to invalidate the client area,but It did not work.
LaxmikantYadav 10-Mar-11 23:21pm    
Can you mail me code ? at yadavlaxmikants@yahoo.com

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900