开发者

Are there any document window focus events?

This one has been a bit of a pain due to a similarly named feature in Visual Studio (which I won't mention here for the sake of people searching).

What I'd like to do is to listen to events reg开发者_如何学编程arding which document window has focus

Are there any document window focus events?

I wish my extension to behave differently depending which SolutionItem is open and has focus. I'd assume there is an event somewhere which will inform me when this focus changes.

I've found where I can listen to when a document opens and closes, but not when a document window has focus.


It depends on if you're interested in window events or hierarchy/project selection events.

For Window events (i.e. document/tool window changes in focus), use IVsWindowFrameNotify3.

For Hierarchy/Project item selection change events, check out IVsMonitorSelection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜