Version

ActivationChanged Event

Raised when a WM_ACTIVATEAPP or a WM_MDIACTIVATE message is received.
Syntax
'Declaration
 
Public Event ActivationChanged As DropDownManager.ActivationChangedEventHandler
public event DropDownManager.ActivationChangedEventHandler ActivationChanged
Event Data

The event handler receives an argument of type DropDownManager.ActivationChangedEventArgs containing data related to this event. The following DropDownManager.ActivationChangedEventArgs properties provide information specific to this event.

PropertyDescription
HookCode The code passed into the hook procedure. Refer to API documentation for SetWindowsHookEx..
HwndActivated The handle of the window being activated
HwndDeactivated The handle of the window being de-activated
Type Identified the message that triggered the ActivationChanged event.
Remarks

Adding a listener here will cause a message hook to be added.

Only one hook is created no matter how many event listeners there are. The hook is removed when there are no more listeners.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also