The Reason enumeration provides the following values:
Description
Value
Reason_Mouse
Window activated by mouse click.
Reason_Unknown
Window was activated with some other method than mouse click.