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?