these code detect the active window: Code: lngActivatedWindow = GetActiveWindow but how can i detect an active child window?
lngActivatedWindow = GetActiveWindow
VB6 2D Sprite control To live is difficult, but we do it.
This will return the focused window within the calling thread: Code: Private Declare Function GetFocus Lib "user32.dll" () As Long
Private Declare Function GetFocus Lib "user32.dll" () As Long
Insomnia is just a byproduct of, "It can't be done" Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum. Read the HitchHiker's Guide to Getting Help on the Forums. Here is the list of TAGs you can use to format your posts Here are VB6 Help Files online {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor} {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}
Originally Posted by LaVolpe This will return the focused window within the calling thread: Code: Private Declare Function GetFocus Lib "user32.dll" () As Long thanks
Forum Rules