Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
68d85cc7
Commit
68d85cc7
authored
Feb 21, 2015
by
André Hentschel
Committed by
Alexandre Julliard
Feb 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Remove dead code.
parent
86153659
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
32 deletions
+1
-32
taskmgr.c
programs/taskmgr/taskmgr.c
+1
-32
No files found.
programs/taskmgr/taskmgr.c
View file @
68d85cc7
...
@@ -184,26 +184,13 @@ static BOOL OnCreate(HWND hWnd)
...
@@ -184,26 +184,13 @@ static BOOL OnCreate(HWND hWnd)
GetClientRect
(
hWnd
,
&
rc
);
GetClientRect
(
hWnd
,
&
rc
);
nOldWidth
=
rc
.
right
;
nOldWidth
=
rc
.
right
;
nOldHeight
=
rc
.
bottom
;
nOldHeight
=
rc
.
bottom
;
/* nOldStartX = rc.left; */
/*nOldStartY = rc.top; */
#define PAGE_OFFSET_LEFT 17
#define PAGE_OFFSET_TOP 72
#define PAGE_OFFSET_WIDTH (PAGE_OFFSET_LEFT*2)
#define PAGE_OFFSET_HEIGHT (PAGE_OFFSET_TOP+32)
if
((
TaskManagerSettings
.
Left
!=
0
)
||
if
((
TaskManagerSettings
.
Left
!=
0
)
||
(
TaskManagerSettings
.
Top
!=
0
)
||
(
TaskManagerSettings
.
Top
!=
0
)
||
(
TaskManagerSettings
.
Right
!=
0
)
||
(
TaskManagerSettings
.
Right
!=
0
)
||
(
TaskManagerSettings
.
Bottom
!=
0
))
(
TaskManagerSettings
.
Bottom
!=
0
))
{
MoveWindow
(
hWnd
,
TaskManagerSettings
.
Left
,
TaskManagerSettings
.
Top
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
,
TRUE
);
MoveWindow
(
hWnd
,
TaskManagerSettings
.
Left
,
TaskManagerSettings
.
Top
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
,
TRUE
);
#ifdef __GNUC__TEST__
MoveWindow
(
hApplicationPage
,
TaskManagerSettings
.
Left
+
PAGE_OFFSET_LEFT
,
TaskManagerSettings
.
Top
+
PAGE_OFFSET_TOP
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
-
PAGE_OFFSET_WIDTH
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
-
PAGE_OFFSET_HEIGHT
,
FALSE
);
MoveWindow
(
hProcessPage
,
TaskManagerSettings
.
Left
+
PAGE_OFFSET_LEFT
,
TaskManagerSettings
.
Top
+
PAGE_OFFSET_TOP
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
-
PAGE_OFFSET_WIDTH
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
-
PAGE_OFFSET_HEIGHT
,
FALSE
);
MoveWindow
(
hPerformancePage
,
TaskManagerSettings
.
Left
+
PAGE_OFFSET_LEFT
,
TaskManagerSettings
.
Top
+
PAGE_OFFSET_TOP
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
-
PAGE_OFFSET_WIDTH
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
-
PAGE_OFFSET_HEIGHT
,
FALSE
);
#endif
}
if
(
TaskManagerSettings
.
Maximized
)
if
(
TaskManagerSettings
.
Maximized
)
ShowWindow
(
hWnd
,
SW_MAXIMIZE
);
ShowWindow
(
hWnd
,
SW_MAXIMIZE
);
...
@@ -297,19 +284,6 @@ static BOOL OnCreate(HWND hWnd)
...
@@ -297,19 +284,6 @@ static BOOL OnCreate(HWND hWnd)
return
TRUE
;
return
TRUE
;
}
}
/* OnMove()
* This function handles all the moving events for the application
* It moves every child window that needs moving
*/
static
void
OnMove
(
UINT
nType
,
int
cx
,
int
cy
)
{
#ifdef __GNUC__TEST__
MoveWindow
(
hApplicationPage
,
TaskManagerSettings
.
Left
+
PAGE_OFFSET_LEFT
,
TaskManagerSettings
.
Top
+
PAGE_OFFSET_TOP
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
-
PAGE_OFFSET_WIDTH
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
-
PAGE_OFFSET_HEIGHT
,
FALSE
);
MoveWindow
(
hProcessPage
,
TaskManagerSettings
.
Left
+
PAGE_OFFSET_LEFT
,
TaskManagerSettings
.
Top
+
PAGE_OFFSET_TOP
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
-
PAGE_OFFSET_WIDTH
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
-
PAGE_OFFSET_HEIGHT
,
FALSE
);
MoveWindow
(
hPerformancePage
,
TaskManagerSettings
.
Left
+
PAGE_OFFSET_LEFT
,
TaskManagerSettings
.
Top
+
PAGE_OFFSET_TOP
,
TaskManagerSettings
.
Right
-
TaskManagerSettings
.
Left
-
PAGE_OFFSET_WIDTH
,
TaskManagerSettings
.
Bottom
-
TaskManagerSettings
.
Top
-
PAGE_OFFSET_HEIGHT
,
FALSE
);
#endif
}
/* OnSize()
/* OnSize()
* This function handles all the sizing events for the application
* This function handles all the sizing events for the application
* It re-sizes every window, and child window that needs re-sizing
* It re-sizes every window, and child window that needs re-sizing
...
@@ -1011,11 +985,6 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
...
@@ -1011,11 +985,6 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
OnSize
(
wParam
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
OnSize
(
wParam
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
break
;
break
;
case
WM_MOVE
:
/* Handle the window moving in its own function */
OnMove
(
wParam
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
break
;
case
WM_DESTROY
:
case
WM_DESTROY
:
ShowWindow
(
hDlg
,
SW_HIDE
);
ShowWindow
(
hDlg
,
SW_HIDE
);
TrayIcon_ShellRemoveTrayIcon
();
TrayIcon_ShellRemoveTrayIcon
();
...
...
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