Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Apr : GOTFOCUS and LOSTFOCUS callback message
| Subject: | GOTFOCUS and LOSTFOCUS callback message |
| Posted by: | "Gianluca" (gianlucadei..@tiscali.it) |
| Date: | Wed, 27 Apr 2005 12:58:11 |
Hello all,
we would like to be notified when a ApplicationWindow(Word, Notepad, ...)
got and/or lost the focus.
Till now we assume that the AppWindow with focus is the returned hWnd from
getForegroundWindow(GetFocus and GetActiveWindow seem to have some other
means).
We are trying:
procedure WMActive(var Msg: TWMACTIVATE); message WM_ACTIVATE;
procedure WMSetFocus(var Msg: TWMSetFocus); message WM_SETFOCUS;
without any significant result.
Could you support us?
Thanks in advance
Gianluca