秋
秋伊水
Unregistered / Unconfirmed
GUEST, unregistred user!
使用AttachThreadInput后原程序焦点就转移到当前程序了,我想不转移焦点,所以还有没有其他办法?相关代码:var FocusHandle: DWORD; CurrentPos: TPoint;begin FocusHandle := GetFocus(); AttachThreadInput(GetCurrentThreadId, GetWindowThreadProcessId(GetForegroundWindow(), nil), TRUE); GetCaretPos(CurrentPos); Windows.ClientToScreen(FocusHandle, CurrentPos); Active_Hint(CurrentPos.X + 5, CurrentPos.Y + 5, ' 啦啦啦,插入符号在这里? ');end;