Outlook handle

Add-in Express™ Support Service
That's what is more important than anything else

Outlook handle
 
Guest


Guest


Is there any way to get either the handle for the current Inspector and/or the main Outlook window (Other then findWindow)?

thanks
Posted 16 Aug, 2005 09:51:47 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Guest,


function GetOLHandle(const OutlookApp: TOutlookApplication): HWND;
var
  IWindow: IOleWindow;
begin
  Result := 0;
  //OutlookApp.ActiveInspector.QueryInterface(IOleWindow, IWindow);
  OutlookApp.ActiveExplorer.QueryInterface(IOleWindow, IWindow);
  if Assigned(IWindow) then begin
    IWindow.GetWindow(Result);
    IWindow := nil;
  end;
end;

Posted 23 Aug, 2005 12:05:26 Top