ドラッグアンドドロップでローカルのファイルをデスクに保存したいときに電子メールメッセージを操作するOutlookアドインを書きたくない。WinFormアプリケーションからドラッグされたファイルを操作する
現時点では、ウィンドウのMouseDownイベントを取得できません。私が見ることができる特定のWindowsメッセージがありますか?
現在、ドラッグイベントにあるデータを操作する方法はありますか?
多くのご協力ありがとうございます!
私はすでにこのため
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
using System.Windows.Forms;
namespace OutlookAddIn1
{
public partial class ThisAddIn
{
Outlook.Explorer explorer;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
explorer = Application.ActiveExplorer();
explorer.BeforeItemCopy += new Outlook.ExplorerEvents_10_BeforeItemCopyEventHandler(Explorer_BeforeItemCopy);
}
private void OnDragEnter(object sender, System.Windows.Forms.DragEventArgs e)
{
MessageBox.Show("OnDragEnter");
}
void Explorer_BeforeItemCopy(ref bool cancel)
{
MessageBox.Show("copied");
}
}
}
あなたは 'DragLeave'を使用することができますイベント –