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 |
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
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;
|
|