Click to See Complete Forum and Search --> : Keyboard focus


priyank9
November 24th, 2006, 04:39 AM
Hi, I am making one application in VC++.NT using WIN32 APIs. Is there any way to find which edit box has a keyboard focus right now using WIN32 APIs? I need handle of the edit box when some one type in that edit box. Thanks in advance. Priyank.

ovidiucucu
November 24th, 2006, 06:24 AM
GetFocus (http://msdn2.microsoft.com/en-gb/library/ms646294.aspx) function retrieves the handle to the window that has the keyboard focus, if the window is attached to the calling thread's message queue.

priyank9
November 24th, 2006, 06:34 AM
Thanks for your reply. But I want to get handle of edit control which is in another application. it is not attached to the calling thread's message queue. Is it possible to do this?