I've got your handle, but are you active? (Win32)
Exactly as the topic says.
I''ve got a window via FindWindow, and I''d like to know how I can figure out if that window is currently active and / or has focus.
Anyone happen to know? Haven''t been able to find anything on MSDN.
Try looking up the windows messages + PeekMessage/GetMessage functions.
I think the one you want is: WM_ACTIVATE
I think the one you want is: WM_ACTIVATE
Use GetWindowInfo() to determine if a window is active, and use GetFocus() to determine the window that currently has the focus. If the HWND returned equals your window''s handle, then your window has the focus.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement