Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Active Window

Status
Not open for further replies.

rpk2006

Technical User
Apr 24, 2002
225
IN
I have two questions:

(1) I want to get the handle of any active Edit window on the desktop.
If I use GetForegroundWindow, how to determine that the handle retrieved is that of an Edit Window.

(2) If I get the handle of the Edit Window, I want to get the text contained in that Edit Window.
 
use EnumChildWindows/GetWindowInfo/GetWindowText

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top