Using Hottrack on CTabCtrl.

Is it possible in any way to use "hottrack" on a CTabCtrl? If anybody knows how it's done please help me out with this.....

With "hottrack" do I mean when the mouse hovers over the title of the PropertyPage then the text color should change.

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.

Hi Slask,

With VC++6 you can either use the resource editor (edit tab control's properties, choose the 'More Styles' tab and check the 'Hottrack' check box) or the TCS_HOTTRACK tab control style (with CTabCtrl::Create() or CWnd::ModifyStyle()).

To find out if hottracking is supported you can use SystemParametersInfo() with SPI_GETHOTTRACKING.

hope that helps,


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
SlaskAuthor Commented:
Thanks, excellent answer, used the TCS_HOTTRACK.....
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.