Condividi tramite


SimpleEditorView.OnEnterState(UInt32, Int32) Method

Definition

Notifies the view when the application enters or exits a given state.

public:
 virtual void OnEnterState(System::UInt32 uStateID, int fEnter);
public:
 virtual void OnEnterState(unsigned int uStateID, int fEnter);
 virtual void OnEnterState(unsigned int uStateID, int fEnter);
public virtual void OnEnterState (uint uStateID, int fEnter);
abstract member OnEnterState : uint32 * int -> unit
override this.OnEnterState : uint32 * int -> unit
Public Overridable Sub OnEnterState (uStateID As UInteger, fEnter As Integer)

Parameters

uStateID
UInt32

The state being entered or exited, specified by the _OLECSTATE enumeration.

fEnter
Int32

true if the application is entering the specified state, false if it is exiting the state.

Implements

Remarks

If one (or more) calls are made with fEnter equal to true, the view should consider the state to be in effect until one (or more) calls are made with fEnter equal to false. It is possible for this method to be called with fEnter equal to false more times than it was called with fEnter equal to true. If there is a state counter that is incremented when this method is called with fEnter equal to true and decremented when called with fEnter equal to false, the counter should not be decremented if it is already at zero.

Applies to