Event When Options Pages Become Active

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 
Z

zippy

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top