Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to get the UI Context with IVsSelectionEvents.OnCmdUIContextChanged ?

$
0
0

With VS 2010, I'm trying to use the IVsSelectionEvents interface, especially the OnCmdUIContextChanged(uint dwCmdUICookie, int fActive) method.

The problem is this method return a uint which represent a UI context. I would like to know how to "convert" this cookie (aka the uint) to a Guid.

When the package register is own UI context, you already have the value dwCmdUICookie thank to the call to IVsMonitorSelection.GetCmdUIContextCookie, so conversion is obvious. But how do you convert the uint to a VS Guid ? I mean OnCmdUIContextChanged send me a uint but it's not use, I need the Guid like VSConstants.UICONTEXT_SolutionBuilding instead.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>