PropertSheet - detecting tab change
I created a propertysheet application with no real problem. I can't seem to get an on_notify message to let me know when the user has selected a new property page. I am trying the OnSelChange and OnSelChanging messages but apparently I'm doing something wrong.
Need help (other than mental).
Thanks,
Murray
Murray Bilker [email protected]
Philadelphia Locking Systems Corp
Re: PropertSheet - detecting tab change
You might find it easier to derive your property pages from a common ancestor derived from CPropertyPage which overrides OnSetActive, then have that call the sheet to do what is required. Having the intermediate class is often usefull if you want to do clever stuff with help anyway.
I can't be sure, but didn't think CPropertySheet supported OnSelChange; might just be my memory though.
Cheers,
Roger
Re: PropertSheet - detecting tab change
I agree with Roger. Create an intermediate class and use that to communicate. An example is included in the MSVC examples for disabling tabs in a property page. This has code to determine if the user has selected a new tab in the list of property pages.
Re: PropertSheet - detecting tab change
Is your propertysheet application dialog based or SDI based? I'm trying to create a propertysheet application which is SDI based and support automatic resizing of the various property pages. I tried using NSViews, but I'm having a problem programmatically changing the active tab.