Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_Today
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
FMVip_Today
Commits
8dde5e63
Commit
8dde5e63
authored
Sep 17, 2016
by
Carwyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes: 取消附加前台窗口纯种,解决前台窗口等待时,会员窗口延迟唤起导致的假死问题
parent
daf2cd68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
FMVip/fmvipwnd.cpp
+3
-10
No files found.
FMVip/fmvipwnd.cpp
View file @
8dde5e63
...
@@ -58,21 +58,14 @@ void FMVipWnd::setIsBusy(const bool isBusy)
...
@@ -58,21 +58,14 @@ void FMVipWnd::setIsBusy(const bool isBusy)
int
FMVipWnd
::
exec
()
int
FMVipWnd
::
exec
()
{
{
show
();
showNormal
();
HWND
hForeWnd
=
::
GetForegroundWindow
();
::
SetForegroundWindow
((
HWND
)
effectiveWinId
());
DWORD
dwForeID
=
::
GetWindowThreadProcessId
(
hForeWnd
,
NULL
);
DWORD
dwCurID
=
::
GetCurrentThreadId
();
::
AttachThreadInput
(
dwCurID
,
dwForeID
,
TRUE
);
::
SetWindowPos
(
(
HWND
)
effectiveWinId
(),
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_SHOWWINDOW
);
::
SetWindowPos
(
(
HWND
)
effectiveWinId
(),
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_SHOWWINDOW
);
::
SetWindowPos
(
(
HWND
)
effectiveWinId
(),
HWND_NOTOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_SHOWWINDOW
);
::
SetWindowPos
(
(
HWND
)
effectiveWinId
(),
HWND_NOTOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_SHOWWINDOW
);
showNormal
();
showNormal
();
::
SetForegroundWindow
((
HWND
)
effectiveWinId
());
::
SetForegroundWindow
(
(
HWND
)
this
->
effectiveWinId
());
::
AttachThreadInput
(
dwCurID
,
dwForeID
,
FALSE
);
return
QDialog
::
exec
();
return
QDialog
::
exec
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment