Event When Options Pages Become Active

  • Thread starter Thread starter zippy
  • Start date Start date
Z

zippy

Is there any way to know when an Options Page becomes active -- be it
your own custom page or one of the default Outlook ones?

Is there any way to remove an existing Options Page?

Is there any way to get a handle to an existing Options Page?

Thanks,
-zip.
 
Yes, no, no.

You can tell when your page becomes active, not other or default
pages. Your OCX used as the property page will fire
UserControl1.InitProperties when it activates. The code in there can
do something or it can post a callback message to your addin if you
have a public class in your addin that is exposed to the property page
and has a public property or method that can be accessed.
 
Thanks for the reply, Ken.

Have you ever tried to "replace" the functionality of a control on one
of the default property pages?

For example, on the Other tab, say I wanted to capture the click of
the "Preview Pane" button.

Am I stuck with the low level win32 window functions enumerating for
windows and controls? Or is there a better way?

Thanks,
-zip
 
You have no access at all to the objects or controls in default
property pages from the Outlook object model or from any other object
model. If you can do what you want to do at all you would have to use
Win32 API functions.
 
Back
Top