ATL property page
Posted on 2002-07-22
I need to enable a timer and poll some hardware when a property page of an ATL component is active. I need to disable this timer when the property page is no longer the active property page.
The MFC CPropertyPage class has two Overridables that are called OnSetActive(), OnKillActive() when the page is activated or deactivated. This is exactly what I want to implement on my components propery page.
I have added a windows message handler for WM_SHOWWINDOW but it is called only once when the property page is first created, but never again when the page is deactivated or re-activated.
My question is how can you determine when the property page is activated or deactivated?