WM_KILLFOCUS and WM_SETFOCUS handling