【问题标题】:Check for dialog box event using windows API in C#在 C# 中使用 windows API 检查对话框事件
【发布时间】:2013-02-12 09:32:00
【问题描述】:

我正在尝试使用 C#.net 检查 powerpoint 2010 中的对话框打开和关闭事件(例如:另存为对话框)。有没有其他方法可以了解事件?

【问题讨论】:

  • 需要更清楚..请提供更多细节..
  • 您是自动化 PowerPoint 还是独立运行?
  • 您是特别需要监视对话框还是需要响应 PowerPoint 中的保存/打开事件?

标签: c# winapi office-interop dialog powerpoint-2010


【解决方案1】:

您可以使用窗口消息来了解窗口何时打开。

看看here。这应该为您指明正确的方向

WM_SHOWWINDOW 消息(Windows) 当窗口即将被隐藏或显示时发送到窗口。 窗口通过其 WindowProc 函数接收此消息。

【讨论】:

    猜你喜欢
    • 2010-09-08
    • 1970-01-01
    • 2010-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-08
    • 2013-11-16
    • 2016-06-13
    相关资源
    最近更新 更多