about focused window, replace static variables implementation by DoFindFocus