共用方式為


EditorControl.OnAppActivate(Int32, UInt32) Method

Definition

Notifies the component whenever the host application is activated or deactivated.

public:
 override void OnAppActivate(int fActive, System::UInt32 dwOtherThreadID);
public:
 override void OnAppActivate(int fActive, unsigned int dwOtherThreadID);
 override void OnAppActivate(int fActive, unsigned int dwOtherThreadID);
public override void OnAppActivate (int fActive, uint dwOtherThreadID);
override this.OnAppActivate : int * uint32 -> unit
Public Overrides Sub OnAppActivate (fActive As Integer, dwOtherThreadID As UInteger)

Parameters

fActive
Int32

If true, the host application is being activated, otherwise it is being deactivated.

dwOtherThreadID
UInt32

If the host application is being activated, the ID of the thread that owns the window being deactivated. If the host application is being deactivated, the ID of the thread owning the window being activated.

Remarks

By default this method does nothing.

This method is not called when both the window being activated and the one being deactivated belong to the host application.

Applies to