Log in

View Full Version : Method 4 getting a handle


NikDH
August 30th, 2001, 06:13
Hi to all
i was looking 4 a method to get the handle of the editbox which last recived text from the keyboard

With GetForegroundWindow() i can only get the parent window with focus but i wanna which of the windows inside this one was recciving text from keyboard

Tnx in advance

See ya
NikDH

Kayaker
August 31st, 2001, 01:01
Hi,

How about GetFocus? - retrieves the handle of the window that has the keyboard focus, if the window is associated with the calling thread's message queue.

Kayaker