IVsMonitorSelection::SetCmdUIContext Method (UInt32, Int32)
Visual Studio 2015
Sets the state of the command UI context to active or inactive.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- dwCmdUICookie
-
Type:
System::UInt32
[in] DWORD representation of the GUID identifying the command UI context passed as the rguidCmdUI parameter in the call to GetCmdUIContextCookie.
- fActive
-
Type:
System::Int32
[out] Flag that is set to true if the command UI context should be set to active and false if it should be set to inactive.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsMonitorSelection::SetCmdUIContext( [in] VSCOOKIE dwCmdUICookie, [in] BOOL fActive );
Show: