Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

WA_ (Constants)
 
.
Summary
Use in WM_ACTIVATE message

C# Constants:

public const int WA_INACTIVE = 0;
public const int WA_ACTIVE = 1;
public const int WA_CLICKACTIVE = 2;

VB Constants:

'''<summary>Deactivated.</summary>
Public Const WA_INACTIVE As Integer = 0;
TODO

Notes:

public bool PreFilterMessage(ref Message m)
{
     if (m.Msg == Win32.WM_ACTIVATE && m.HWnd == f.Handle
     && Win32.LoWord(m.WParam.ToInt32()) == WA_INACTIVE) {
     ...
     }
}

'''<summary>
'''Activated by some method other than a mouse click (for example, by a call to
'''the SetActiveWindow function or by use of the keyboard interface to select the window).
'''</summary>
Public Const WA_ACTIVE As Integer = 1;

'''<summary>Activated by a mouse click.</summary>
Public Const WA_CLICKACTIVE As Integer = 2;

VB Enum:

''' <summary>Used in wParam of a WM_ACTIVATE message</summary>
Public Enum WA As Integer
   '''<summary>Deactivated.</summary>
   INACTIVE = 0

   '''<summary>
   '''Activated by some method other than a mouse click (for example, by a call to
   '''the SetActiveWindow function or by use of the keyboard interface to select the window).
   '''</summary>
   ACTIVE = 1

   '''<summary>Activated by a mouse click.</summary>
   CLICKACTIVE = 2
End Enum

Notes:

public bool PreFilterMessage(ref Message m)
{
     if (m.Msg == Win32.WM_ACTIVATE && m.HWnd == f.Handle
     && Win32.LoWord(m.WParam.ToInt32()) == WA_INACTIVE) {
     ...
     }
}

 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions