fix winapi selected text scan