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
b6b4787e
Commit
b6b4787e
authored
Jul 05, 2005
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Printer_LoadIconsW: implemented minimal version.
parent
e6cee96d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
shell32.spec
dlls/shell32/shell32.spec
+1
-1
shell32_main.c
dlls/shell32/shell32_main.c
+31
-0
No files found.
dlls/shell32/shell32.spec
View file @
b6b4787e
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
202 stub SHLocalReAlloc
202 stub SHLocalReAlloc
203 stub AddCommasW
203 stub AddCommasW
204 stub ShortSizeFormatW
204 stub ShortSizeFormatW
205 st
ub Printer_LoadIconsW
205 st
dcall Printer_LoadIconsW(wstr ptr ptr)
206 stub Link_AddExtraDataSection
206 stub Link_AddExtraDataSection
207 stub Link_ReadExtraDataSection
207 stub Link_ReadExtraDataSection
208 stub Link_RemoveExtraDataSection
208 stub Link_RemoveExtraDataSection
...
...
dlls/shell32/shell32_main.c
View file @
b6b4787e
...
@@ -718,6 +718,37 @@ HICON WINAPI ExtractIconW(HINSTANCE hInstance, LPCWSTR lpszFile, UINT nIconIndex
...
@@ -718,6 +718,37 @@ HICON WINAPI ExtractIconW(HINSTANCE hInstance, LPCWSTR lpszFile, UINT nIconIndex
return
NULL
;
return
NULL
;
}
}
/*************************************************************************
* Printer_LoadIconsW [SHELL32.205]
*/
VOID
WINAPI
Printer_LoadIconsW
(
LPCWSTR
wsPrinterName
,
HICON
*
pLargeIcon
,
HICON
*
pSmallIcon
)
{
INT
iconindex
=
IDI_SHELL_PRINTER
;
TRACE
(
"(%s, %p, %p)
\n
"
,
debugstr_w
(
wsPrinterName
),
pLargeIcon
,
pSmallIcon
);
/* We should check if wsPrinterName is
1. the Default Printer or not
2. connected or not
3. a Local Printer or a Network-Printer
and use different Icons
*/
FIXME
(
"(select Icon by PrinterName %s not implemented)
\n
"
,
debugstr_w
(
wsPrinterName
));
if
(
pLargeIcon
!=
NULL
)
*
pLargeIcon
=
LoadImageW
(
shell32_hInstance
,
(
LPCWSTR
)
MAKEINTRESOURCE
(
iconindex
),
IMAGE_ICON
,
0
,
0
,
LR_DEFAULTCOLOR
|
LR_DEFAULTSIZE
);
if
(
pSmallIcon
!=
NULL
)
*
pSmallIcon
=
LoadImageW
(
shell32_hInstance
,
(
LPCWSTR
)
MAKEINTRESOURCE
(
iconindex
),
IMAGE_ICON
,
16
,
16
,
LR_DEFAULTCOLOR
);
}
/*************************************************************************/
typedef
struct
typedef
struct
{
{
LPCWSTR
szApp
;
LPCWSTR
szApp
;
...
...
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