I'm writing an "on screen keyboard" like the windows one, with Visual
C++ 6 and MFC support.
I'm looking at SendInput and keybd_event functions to simulate
keyboard events. I saw there are many problems (maybe focus derived)
to send character messages to other windows like Internet Explorer...
and in general with all the applications in which the cursor is active
in a text box.

Is there a solution to this problem?

Thanks a lot!