Comfort Software :: Foren :: Development
<< Vorheriger Thread | Nächster Thread >>   

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

Autor Eintrag
Fri Feb 22 2013, 04:05AM
Registriertes Mitglied #800
Dabei seit: Wed Apr 06 2011, 03:32AM
Einträge: 5

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
Nach oben
Mon Feb 25 2013, 09:53AM

Dabei seit: Wed Sep 19 2007, 03:42PM
Einträge: 565
For Visual Basic, it looks like this:
Dim hWnd As Long
hWnd = FindWindow("TMainKeyboardForm", vbNullString)
If (IsWindowVisible(hWnd)) Then ........

Have a nice day
Nach oben
Moderatoren: Comfort

Forum:     Nach oben

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