Partager via


IVsLiteTreeEvents.OnToggleState(UInt32, UInt32) Method

Definition

Called when an icon changes state.

public:
 int OnToggleState(System::UInt32 AbsIndex, System::UInt32 tscr);
public:
 int OnToggleState(unsigned int AbsIndex, unsigned int tscr);
int OnToggleState(unsigned int AbsIndex, unsigned int tscr);
public int OnToggleState (uint AbsIndex, uint tscr);
abstract member OnToggleState : uint32 * uint32 -> int
Public Function OnToggleState (AbsIndex As UInteger, tscr As UInteger) As Integer

Parameters

AbsIndex
UInt32

[In] An unsigned integer containing the Absolute Index of the Item.

tscr
UInt32

[In] An object of type VSTREESTATECHANGEREFRESH

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsLiteTreeEvents::OnToggleState(  
   [in] ULONG AbsIndex,   
   [in] VSTREESTATECHANGEREFRESH tscr  
);  

Applies to