从Inspector获取窗口句柄

时间:2011-04-10 12:18:59

标签: c# outlook outlook-object-model intptr window-handles

  

可能重复:
  Open Event of Window and Handle of Window

大家好,

如何从刚刚打开的Outlook窗口中获取窗口句柄(IntPtr)?

        OutLook.Items items = oFolder.Items;

        foreach (OutLook.MailItem mail in items)
        {

              mail.Display();

              //IntPtr a = (System.IntPtr)mail.GetInspector.Parent;

我是C sharp的新手。

0 个答案:

没有答案