Under the NT Kernel, the lParam of the WM_ACTIVATE is always 0 because
applications have their own virtual memory space.

Try using a named semaphore (this is from 10+ year old memory).

Tom

-----Original Message-----
From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf
Of Wilfried Mestdagh
Sent: Wednesday, August 19, 2009 08:13
To: Borland's Delphi Discussion List
Subject: WM_ACTIVATE

Hello,

I read in windows  API help:

WM_ACTIVATE
fActive = LOWORD(wParam);           // activation flag 
fMinimized = (BOOL) HIWORD(wParam); // minimized flag 
hwndPrevious = (HWND) lParam;       // window handle 
 
But when I make a custom message handler in my main form for the
WM_ACTIVATE then lParam is always 0.

I need to find the handle of the previous active application.
Any idea?

rgds, Wilfried
 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4349 (20090819) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
  • WM_ACTIVATE Wilfried Mestdagh
    • RE: WM_ACTIVATE Thomas W. Clay

Reply via email to