D
Dave
Hello,
I am writing an On-screen keyboard, similar to the one included in
windows 2k and XP.
The problem I am having is that I need my keyboard to never get the
focus, but still be able to process events such as mouse clicks.
I have tried setting focus back to the app that just lost the focus,
however in smoe application this does not work as the caret/cursor is
not returned to its original position. Therefore, I need to stop the
app that I'm writing to eg. IE or notepad, from ever losing the focus,
or rather, stop my app from activating/getting the focus.
I have tried various API's using various flags, but to no avail.
The closest I got was by using the SetWindowLong API with the
WS_EX_NOACTIVATE flag, which does stop my app from ever getting focus,
but it also makes it transparent and unable to receive any mouse
events.
I have been struggling with this for a couple of weeks now, so any
help would be greatly appreciated.
Cheers,
Dave )
I am writing an On-screen keyboard, similar to the one included in
windows 2k and XP.
The problem I am having is that I need my keyboard to never get the
focus, but still be able to process events such as mouse clicks.
I have tried setting focus back to the app that just lost the focus,
however in smoe application this does not work as the caret/cursor is
not returned to its original position. Therefore, I need to stop the
app that I'm writing to eg. IE or notepad, from ever losing the focus,
or rather, stop my app from activating/getting the focus.
I have tried various API's using various flags, but to no avail.
The closest I got was by using the SetWindowLong API with the
WS_EX_NOACTIVATE flag, which does stop my app from ever getting focus,
but it also makes it transparent and unable to receive any mouse
events.
I have been struggling with this for a couple of weeks now, so any
help would be greatly appreciated.
Cheers,
Dave )