This topic has not yet been rated - Rate this topic

IVsMonitorSelection.SetCmdUIContext Method

Sets the state of the command UI context to active or inactive.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int SetCmdUIContext(
	uint dwCmdUICookie,
	int fActive
)

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.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsMonitorSelection::SetCmdUIContext(
   [in] VSCOOKIE dwCmdUICookie,
   [in] BOOL     fActive
);
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ