|
-
Feb 20th, 2001, 02:46 PM
#1
Thread Starter
Fanatic Member
Well hi,
I'm working on a virtual keyboard application which works pretty well by now, but I'm looking for an other method to accomplish it.
My app always stays on top and scans the system for any open window using GetWindowFromPoint() during the timer event of a simple Timer Control in my app.
The app contains many buttons, each of them is used as a keyboard button (like A,B,Return, Delete, ...).
When the user presses a button, it's value is transferred to the Window obtained in the timer control. Herefore I'm using the SendMessage API with the WM_CHAR message.
This works, but my goal is to transfer the keypresses ONLY to the window that had the last focus before the keypress event instead of using the GetWindowFromPoint. This could be any window (TextBox, ListBox) of any running application.
The GetFocus API only works for windows, contained in my project, not for other processes.
So, my question: how to obtain which editable object had the last focus...
Hoping for some reactions...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|