Hello. Is there a way to detect the hWnd of the active control?

Thanks!