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

  • Thread starter Thread starter Madkr
  • Start date Start date
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
 
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.
 
Back
Top