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 _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi