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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is window active??

Status
Not open for further replies.

turtlemaster

Programmer
Oct 4, 2001
93
0
0
US
I am extracting information of a child window in another application but I want to ensure that the child window used is the active window (The child currently selected). Do I have to EnumProp to get this information? If so what atom string do I use to find this (I was just reviewing the API documentation and couldn't find a listing on this)? Is There an easier way like IsWindowActive or something like that?

I don't want to check if the window is visible because it may be visible but covered up by another window. I need to know if it is the active window on top. This application uses an MDI interface if I haven't mentioned that already.

Thanks in advance!!
 
I haven't tested it, but can't you just use:
Code:
Private Declare Function GetActiveWindow Lib "user32" () As Long
Remedy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top