Martin Eskildsen
April 12th, 1999, 04:52 PM
I has a very small dialog based appliaction that works as a keyboard it is used on computers with touch screens where no keyboard is attached. The problem is that I want the input to be redirected to the application/window that were active just before the application with the keyboard - and this other application could change. The keyboard application is placed as a topmost window (acts like Taskmanager in Win NT), which the application receiving the keyboard event is not always. I found the found the method CWnd::OnActivateApp which seems to work (it is called each time I activate the app), but I need to have an HWND to the window that were active just before eg. the window containing Notepad - any suggestions of how to get that handle ?