How to get the preview pane handle, when it is created with menu c

M

Madkr

I need to get the reading pane window handle, when it is created after the
user clicks the menu as "view -reading Pane - right".
I am able to get the handle of it, if this option is already set as "right"
or "bottom"
But if the preview pane option is "off", when the outlook initially opened,
on the clcik of the option, I am not getting the window handle.
I am getting it, if I close the reading pane and open it again.

First time, when the reading pane or to-do-bar is created with menu click, I
am not getting the window handle.

Can anyone please help me in this direction? How to get the handle at the
first time?
Thanks
 
K

Ken Slovak - [MVP - Outlook]

You would need to subclass the main Outlook window and handle the new window
creation. Probably something like handling CreateWindowEx() messages
directed at the main Outlook window with an attribute of WS_CHILD, then
checking the class of the new window to verify that it's a reading pane
window.
 

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