Commit 387317a5 by zhenfei.zhang

Merge branch 'dev' into 'dev'

修复扫码界面卡死问题

See merge request !4
parents 45d1cce7 199e84f9
......@@ -81,7 +81,7 @@ void ScanningDialog::timeOut()
HWND hForeWnd = ::GetForegroundWindow();
DWORD dwForeID = ::GetWindowThreadProcessId(hForeWnd,NULL);
DWORD dwCurID = ::GetCurrentThreadId();
::AttachThreadInput(dwCurID,dwForeID,TRUE);
//::AttachThreadInput(dwCurID,dwForeID,TRUE);
::SetWindowPos( (HWND)effectiveWinId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
......@@ -89,7 +89,7 @@ void ScanningDialog::timeOut()
::SetForegroundWindow((HWND)this->effectiveWinId());
::AttachThreadInput(dwCurID,dwForeID,FALSE);
//::AttachThreadInput(dwCurID,dwForeID,FALSE);
this->setFocus();
ui->labScaningBar->setFocus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment