Detecting WA_ACTIVE
I'm having a problem detecting the WA_ACTIVE event.
I have an event hook on a program and i want to detect when it is activated and then do my stuff accordingly.
i can detect the WM_ACTIVATE message (i've tested this), but can;t filter any of the WA_ACTIVE ro WA_CLICKACTIVE messages. am i filtering it correctly?
LPCWPSTRUCT pCwp = (LPCWPSTRUCT) lParam;
switch (pCwp->message)
{
.
.
case WM_ACTIVATE:
if( LOWORD(wParam) == WA_ACTIVE || LOWORD(wParam) == WA_CLICKACTIVE)
{
char buf[128];
sprintf(buf, "here wa_active");
MessageBox(NULL, buf, NULL, 0);
}
break;
.
.
}
the callback method looks like this
RESULT CALLBACK AppEventsHook (int nCode, WPARAM wParam, LPARAM lParam)
any ideas?
Thanks Matt.

