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
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