is this what you seek?:
Code:
HWND hFocusWnd = GetFocus();
GetFocus()