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
fa29e0f2
Commit
fa29e0f2
authored
May 06, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Make use of the control panel icon.
parent
7dfa965d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
control.c
dlls/shell32/control.c
+4
-4
shresdef.h
dlls/shell32/shresdef.h
+0
-2
No files found.
dlls/shell32/control.c
View file @
fa29e0f2
...
...
@@ -475,8 +475,8 @@ static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
case
IDM_CPANEL_ABOUT
:
{
WCHAR
appName
[
MAX_STRING_LEN
];
HICON
icon
=
LoadImageW
(
(
HINSTANCE
)
GetWindowLongPtrW
(
hWnd
,
GWLP_HINSTANCE
),
MAKEINTRESOURCEW
(
IDI_APPICON
),
IMAGE_ICON
,
48
,
48
,
LR_SHARED
);
HICON
icon
=
LoadImageW
(
shell32_hInstance
,
MAKEINTRESOURCEW
(
IDI_SHELL_CONTROL_PANEL
),
IMAGE_ICON
,
48
,
48
,
LR_SHARED
);
LoadStringW
(
shell32_hInstance
,
IDS_CPANEL_TITLE
,
appName
,
sizeof
(
appName
)
/
sizeof
(
appName
[
0
]));
...
...
@@ -627,12 +627,12 @@ static void Control_DoInterface(CPanel* panel, HWND hWnd, HINSTANCE hInst)
wc
.
cbClsExtra
=
0
;
wc
.
cbWndExtra
=
sizeof
(
CPlApplet
*
);
wc
.
hInstance
=
panel
->
hInst
=
hInst
;
wc
.
hIcon
=
LoadIconW
(
hInst
,
MAKEINTRESOURCEW
(
IDI_APPICON
)
);
wc
.
hIcon
=
LoadIconW
(
shell32_hInstance
,
MAKEINTRESOURCEW
(
IDI_SHELL_CONTROL_PANEL
)
);
wc
.
hCursor
=
LoadCursorW
(
0
,
(
LPWSTR
)
IDC_ARROW
);
wc
.
hbrBackground
=
GetStockObject
(
WHITE_BRUSH
);
wc
.
lpszMenuName
=
NULL
;
wc
.
lpszClassName
=
className
;
wc
.
hIconSm
=
LoadImageW
(
hInst
,
MAKEINTRESOURCEW
(
IDI_APPICON
),
IMAGE_ICON
,
wc
.
hIconSm
=
LoadImageW
(
shell32_hInstance
,
MAKEINTRESOURCEW
(
IDI_SHELL_CONTROL_PANEL
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
);
if
(
!
RegisterClassExW
(
&
wc
))
return
;
...
...
dlls/shell32/shresdef.h
View file @
fa29e0f2
...
...
@@ -178,8 +178,6 @@
#define IDI_SHELL_CONFIRM_DELETE 161
#define IDI_SHELL_MY_DOCUMENTS 235
#define IDI_APPICON 101
/*
AVI resources, windows shell32 has 14 of them: 150-152 and 160-170
FIXME: Need to add them, but for now just let them use the same: searching.avi
...
...
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