Bert Stomphorst
Posts: 21
Joined: 2005-10-31
|
Hi,
When I call a ShowDialog from my toolbar in Outlook, I want to 'bind' the dialog to the Outlook-window. Therefore I use the owner-parameter from ShowDialog, but what do I have to specify for that parameter? Which object does expose the IWin32Window-object?
thank you,
Bert |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Bert.
You should implement the IWin32Window interface yourself.
As a handle in the Handle property you should pass the handle of the active window. You can use the GetForegroundWindow (when Word is used as an editor) or GetActiveWindow functions to obtain the handle of the parent window (see MSDN to read about these function). |
|