IVsUIShell::PostSetFocusMenuCommand Method (Guid, UInt32)

 

Sets focus in a combo box.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int PostSetFocusMenuCommand(
	[InAttribute] Guid% pguidCmdGroup,
	unsigned int nCmdID
)

Parameters

pguidCmdGroup
Type: System::Guid

[in] Pointer to a GUID specifying the command group.

nCmdID
Type: System::UInt32

[in] Integer containing the command group ID.

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 IVsUIShell::PostSetFocusMenuCommand(
   [in, unique] const GUID *pguidCmdGroup,
   [in] DWORD nCmdId
);
Return to top
Show: