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

Using CTabCtrl::HighlightItem()

I am trying to use the CTabCtrl::HighlightItem on my propertysheet. I want the tab on the page that is currently displayed to be highlighted. The problem I am facing is how to detect when a new page is displayed. I need to set highlight to that page and ofcourse also remove the highlight from the previous displayed page. The propertysheet can diaplay different number of pages, so I also need to know how to find out which index the page has. Is it possible? If so how can I do it?
0
joakimf
Asked:
joakimf
  • 2
1 Solution
 
bhatCommented:
Hi

U can use the OnSetActive( ) in ur Propertypage class.
Add OnSetActive() to all the propertypages in ur propertysheet.
This funtion will be called whenever a particular page gets active.
So in this function remove and set the highlight.

Hope this helps U.
0
 
joakimfAuthor Commented:
Thanks...
0
 
bhatCommented:
U are welcome
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

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