IVsMonitorSelection::SetCmdUIContext Method (UInt32, Int32)

 

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(
	unsigned int 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.

From vsshell.idl:

HRESULT IVsMonitorSelection::SetCmdUIContext(
   [in] VSCOOKIE dwCmdUICookie,
   [in] BOOL     fActive
);
Return to top
Show: