Forums


Comfort Software :: Forums :: Development
<< Previous thread | Next thread >>   

Getting the window-handle on "the real" OSK keyboard

Author Post
Rasmus
Fri Feb 22 2013, 04:05am
Registered Member #800
Joined: Wed Apr 06 2011, 03:32am
Posts: 5
Hi.

We're running the CSG OSK in our product, and controlling it using the windows messaging API, but, we have encountered some problems lately.

Namely, sometimes our application and the OSK doesn't agree on "the state" of the OSK, meaning we think it's shown, when it's infact hidden and vice versa.

What we would like to do, is to get a "real" window handle on the OSK, so we can ask whether it's visible or not.

Unfortunately, the User32.FindWindow("TFirstForm", "CKeyboardFirstForm") seems to only get us a "bogus" handle, one that can receive our messages, but not one that actually change state when we post the 192 user message to it.

Do you have any way we can get the "actual" window handle? or query the OSK for whether it thinks it's showing or not? I.e. a different classname or windowname, or some other way?

PS: We're currently using v7.0.1.4 version of the OSK
Back to top
Comfort
Mon Feb 25 2013, 09:53am


Joined: Wed Sep 19 2007, 03:42pm
Posts: 525
For Visual Basic, it looks like this:
Dim hWnd As Long
hWnd = FindWindow("TMainKeyboardForm", vbNullString)
If (IsWindowVisible(hWnd)) Then ........



Have a nice day
Back to top
Moderators: Comfort

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System