Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ef10cd8b
Commit
ef10cd8b
authored
Oct 15, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: SwitchToThisWindow() is available, remove alternate code path.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
054be18f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
applpage.c
programs/taskmgr/applpage.c
+0
-14
No files found.
programs/taskmgr/applpage.c
View file @
ef10cd8b
...
...
@@ -47,8 +47,6 @@ static int nApplicationPageHeight;
static
HANDLE
hApplicationPageEvent
=
NULL
;
/* When this event becomes signaled then we refresh the app list */
static
BOOL
bSortAscending
=
TRUE
;
static
const
WCHAR
wszUser32
[]
=
{
'U'
,
'S'
,
'E'
,
'R'
,
'3'
,
'2'
,
'.'
,
'D'
,
'L'
,
'L'
,
0
};
static
void
ApplicationPageUpdate
(
void
)
{
/* Enable or disable the "End Task" & "Switch To" buttons */
...
...
@@ -743,19 +741,7 @@ void ApplicationPage_OnSwitchTo(void)
}
}
if
(
pAPLI
)
{
typedef
void
(
WINAPI
*
PROCSWITCHTOTHISWINDOW
)
(
HWND
,
BOOL
);
PROCSWITCHTOTHISWINDOW
SwitchToThisWindow
;
HMODULE
hUser32
=
GetModuleHandleW
(
wszUser32
);
SwitchToThisWindow
=
(
PROCSWITCHTOTHISWINDOW
)
GetProcAddress
(
hUser32
,
"SwitchToThisWindow"
);
if
(
SwitchToThisWindow
)
{
SwitchToThisWindow
(
pAPLI
->
hWnd
,
TRUE
);
}
else
{
if
(
IsIconic
(
pAPLI
->
hWnd
))
ShowWindow
(
pAPLI
->
hWnd
,
SW_RESTORE
);
BringWindowToTop
(
pAPLI
->
hWnd
);
SetForegroundWindow
(
pAPLI
->
hWnd
);
}
if
(
TaskManagerSettings
.
MinimizeOnUse
)
ShowWindow
(
hMainWnd
,
SW_MINIMIZE
);
}
...
...
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