Outlook addins

  • Thread starter Thread starter Anushya
  • Start date Start date
A

Anushya

Hi
I created a add-ins in outlook that replaces the listview in
outlook(that displays mail items) with my custom form..

a = (IntPtr)FindWindow("rctrl_renwnd32", "Inbox - Microsoft Outlook");
b = FindWindowEx(a, IntPtr.Zero, "rctrl_renwnd32", IntPtr.Zero);
c = FindWindowEx(b, IntPtr.Zero, "AfxWndA", IntPtr.Zero);
d = FindWindowEx(c, IntPtr.Zero, "SUPERGRID", IntPtr.Zero);

RECT rc = new RECT();
int hwnd = GetWindowRect((int)d, ref rc);
//custom form - frmInbox
frmInbox1.Top = rc.top;
frmInbox1.Left = rc.left;
frmInbox1.Height = rc.bottom - rc.top;
frmInbox1.Width = rc.right - rc.left;
return (int)a;

Now this custom window is just displayed with the co-ordinates of
default inbox.. but it is not attached to outlook. Now if i minimize
outlook, that window is displayed without any link to outlook.. Wot
should i do to hook the window to outlook?????

thanks
Anushya
 
Well, you can't... There is no way to force Outlook to use your custom
window instead of its grid.
What exactly are you trying to do?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
You might try using folder homepages so that Outlook will display a webpage
you install locally whenever the user navigates to a particular folder.
Then you could make your custom list of messages into an activex control and
put it in the page.

________
Daniel Simmons, Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top