Visual Studio 扩展中的 WindowState 更改事件 [英] WindowState change event in Visual Studio extension

查看:33
本文介绍了Visual Studio 扩展中的 WindowState 更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个事件,当主窗口在 Visual Studio 扩展包中最小化和恢复时会通知我.

I am looking for an event that will notify me when the main window is minimized and restored in a Visual Studio extension package.

我查看了 DTE2.Events,以及 IVsWindowFrame 和 IVsWindowFrameNotify 接口,但没有看到任何可以满足我需要的东西.

I've looked at the DTE2.Events, as well as the IVsWindowFrame and IVsWindowFrameNotify interfaces but don't see anything that will do what I need.

推荐答案

获取VS窗口的HWND:Visual Studio 2010 硬件

Get the HWND of the VS window: HWnd of Visual Studio 2010

捕获发送到 Visual Studio 的消息:C# -从特定应用程序捕获 Windows 消息

Capture the messages being sent to Visual Studio: C# - Capturing Windows Messages from a specific application

然后等待 WM_SIZE 消息:http://msdn.microsoft.com/en-us/library/ms632646%28v=VS.85%29.aspx

Then wait for a WM_SIZE message: http://msdn.microsoft.com/en-us/library/ms632646%28v=VS.85%29.aspx

这篇关于Visual Studio 扩展中的 WindowState 更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆