Share via


IVsMonitorSelection.SetCmdUIContext(UInt32, Int32) Method

Definition

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

public:
 int SetCmdUIContext(System::UInt32 dwCmdUICookie, int fActive);
public:
 int SetCmdUIContext(unsigned int dwCmdUICookie, int fActive);
int SetCmdUIContext(unsigned int dwCmdUICookie, int fActive);
public int SetCmdUIContext (uint dwCmdUICookie, int fActive);
abstract member SetCmdUIContext : uint32 * int -> int
Public Function SetCmdUIContext (dwCmdUICookie As UInteger, fActive As Integer) As Integer

Parameters

dwCmdUICookie
UInt32

[in] DWORD representation of the GUID identifying the command UI context passed as the rguidCmdUI parameter in the call to GetCmdUIContextCookie(Guid, UInt32).

fActive
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.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsMonitorSelection::SetCmdUIContext(  
   [in] VSCOOKIE dwCmdUICookie,  
   [in] BOOL     fActive  
);  

Applies to