Link to home
Start Free TrialLog in
Avatar of yylibra61
yylibra61

asked on

Problem with switching tabs on multi rows to tabs on single rows

I created an ownerdrawn tab control (CTabCtrl).  I wanted to be able to set Tab Style on the fly.  For instance,
I have check box with two options - Tabs on single line, and Tabs on multiple row.
The problem is when user check on "Tabs on multiple rows", it shows Tabs on multiple rows, but it could not be changed back to show Tabs on single line again.  
I used following to switch to multiple lines:
ModifyStyle(ModifyStyle(TCS_MULTIROW, TCS_MULTIROW);

Any ideas?  appreciate any inputs!
Avatar of jimstar
jimstar

I can't speak to your particlar case, but you might have to invalidate the control or force an update/paint/refresh after the change. If nobody else comes along with a better idea, you might try looking for an MFC method on the control that will either do Invalidate, Paint, Refresh, Update, etc.

Good luck!
ASKER CERTIFIED SOLUTION
Avatar of itsmeandnobodyelse
itsmeandnobodyelse
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yylibra61

ASKER

It worked!  thanks!