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
ec24b87a
Commit
ec24b87a
authored
May 17, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
May 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Remove all TCHAR macro usage in miscellaneous UI code.
parent
088d0630
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
column.c
programs/taskmgr/column.c
+2
-2
proclist.c
programs/taskmgr/proclist.c
+7
-5
trayicon.c
programs/taskmgr/trayicon.c
+2
-2
No files found.
programs/taskmgr/column.c
View file @
ec24b87a
...
...
@@ -493,9 +493,9 @@ void ProcessPage_OnViewSelectColumns(void)
if
(
DialogBoxW
(
hInst
,
MAKEINTRESOURCEW
(
IDD_COLUMNS_DIALOG
),
hMainWnd
,
ColumnsDialogWndProc
)
==
IDOK
)
{
for
(
i
=
Header_GetItemCount
(
hProcessPageHeaderCtrl
)
-
1
;
i
>=
0
;
i
--
)
for
(
i
=
SendMessageW
(
hProcessPageHeaderCtrl
,
HDM_GETITEMCOUNT
,
0
,
0
)
-
1
;
i
>=
0
;
i
--
)
{
ListView_DeleteColumn
(
hProcessPageListCtrl
,
i
);
SendMessageW
(
hProcessPageListCtrl
,
LVM_DELETECOLUMN
,
0
,
i
);
}
for
(
i
=
0
;
i
<
25
;
i
++
)
...
...
programs/taskmgr/proclist.c
View file @
ec24b87a
...
...
@@ -39,6 +39,7 @@ WNDPROC OldProcessListWndProc;
LRESULT
CALLBACK
ProcessListWndProc
(
HWND
hWnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HBRUSH
hbrBackground
;
int
count
;
RECT
rcItem
;
RECT
rcClip
;
HDC
hDC
;
...
...
@@ -69,7 +70,7 @@ LRESULT CALLBACK ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
/*
* Get the background brush
*/
hbrBackground
=
(
HBRUSH
)
GetClassLongPtr
(
hWnd
,
GCLP_HBRBACKGROUND
);
hbrBackground
=
(
HBRUSH
)
GetClassLongPtr
W
(
hWnd
,
GCLP_HBRBACKGROUND
);
/*
* Calculate the clip rect by getting the RECT
...
...
@@ -80,13 +81,14 @@ LRESULT CALLBACK ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
* use icons in this list control.
*/
rcClip
.
left
=
LVIR_BOUNDS
;
SendMessage
(
hWnd
,
LVM_GETITEMRECT
,
0
,
(
LPARAM
)
&
rcClip
);
SendMessage
W
(
hWnd
,
LVM_GETITEMRECT
,
0
,
(
LPARAM
)
&
rcClip
);
rcItem
.
left
=
LVIR_BOUNDS
;
SendMessage
(
hWnd
,
LVM_GETITEMRECT
,
ListView_GetItemCount
(
hWnd
)
-
1
,
(
LPARAM
)
&
rcItem
);
count
=
SendMessageW
(
hWnd
,
LVM_GETITEMCOUNT
,
0
,
0
);
SendMessageW
(
hWnd
,
LVM_GETITEMRECT
,
count
-
1
,
(
LPARAM
)
&
rcItem
);
rcClip
.
bottom
=
rcItem
.
bottom
;
rcItem
.
left
=
LVIR_ICON
;
SendMessage
(
hWnd
,
LVM_GETITEMRECT
,
0
,
(
LPARAM
)
&
rcItem
);
SendMessage
W
(
hWnd
,
LVM_GETITEMRECT
,
0
,
(
LPARAM
)
&
rcItem
);
rcClip
.
left
=
rcItem
.
right
;
/*
...
...
@@ -117,5 +119,5 @@ LRESULT CALLBACK ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
/*
* We pass on all messages except WM_ERASEBKGND
*/
return
CallWindowProc
(
OldProcessListWndProc
,
hWnd
,
message
,
wParam
,
lParam
);
return
CallWindowProc
W
(
OldProcessListWndProc
,
hWnd
,
message
,
wParam
,
lParam
);
}
programs/taskmgr/trayicon.c
View file @
ec24b87a
...
...
@@ -64,8 +64,8 @@ static HICON TrayIcon_GetProcessorUsageIcon(void)
/*
* Load the bitmaps
*/
hBitmap
=
LoadBitmap
(
hInst
,
MAKEINTRESOURCE
(
IDB_TRAYICON
));
hBitmapMask
=
LoadBitmap
(
hInst
,
MAKEINTRESOURCE
(
IDB_TRAYMASK
));
hBitmap
=
LoadBitmap
W
(
hInst
,
MAKEINTRESOURCEW
(
IDB_TRAYICON
));
hBitmapMask
=
LoadBitmap
W
(
hInst
,
MAKEINTRESOURCEW
(
IDB_TRAYMASK
));
if
(
!
hBitmap
||
!
hBitmapMask
)
goto
done
;
...
...
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