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
088eb87e
Commit
088eb87e
authored
Oct 02, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Oct 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add implementation for LoadIconMetric.
Signed-off-by:
Michael Müller
<
michael@fds-team.de
>
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
parent
c098c13e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
comctl32.spec
dlls/comctl32/comctl32.spec
+1
-0
commctrl.c
dlls/comctl32/commctrl.c
+28
-0
commctrl.h
include/commctrl.h
+7
-0
No files found.
dlls/comctl32/comctl32.spec
View file @
088eb87e
...
...
@@ -88,6 +88,7 @@
375 stdcall -noname -private StrCSpnIW(wstr wstr)
376 stdcall -noname -private IntlStrEqWorkerA(long str str long)
377 stdcall -noname -private IntlStrEqWorkerW(long wstr wstr long)
380 stdcall -ordinal LoadIconMetric(ptr wstr long ptr)
381 stdcall -ordinal LoadIconWithScaleDown(ptr wstr long long ptr)
382 stdcall -noname SmoothScrollWindow(ptr)
383 stub -noname DoReaderMode
...
...
dlls/comctl32/commctrl.c
View file @
088eb87e
...
...
@@ -1658,3 +1658,31 @@ HRESULT WINAPI LoadIconWithScaleDown(HINSTANCE hinst, const WCHAR *name, int cx,
return
S_OK
;
}
/***********************************************************************
* LoadIconMetric [COMCTL32.@]
*/
HRESULT
WINAPI
LoadIconMetric
(
HINSTANCE
hinst
,
const
WCHAR
*
name
,
int
size
,
HICON
*
icon
)
{
int
cx
,
cy
;
TRACE
(
"(%p, %s, %d, %p)
\n
"
,
hinst
,
debugstr_w
(
name
),
size
,
icon
);
if
(
size
==
LIM_SMALL
)
{
cx
=
GetSystemMetrics
(
SM_CXSMICON
);
cy
=
GetSystemMetrics
(
SM_CYSMICON
);
}
else
if
(
size
==
LIM_LARGE
)
{
cx
=
GetSystemMetrics
(
SM_CXICON
);
cy
=
GetSystemMetrics
(
SM_CYICON
);
}
else
{
*
icon
=
NULL
;
return
E_INVALIDARG
;
}
return
LoadIconWithScaleDown
(
hinst
,
name
,
cx
,
cy
,
icon
);
}
include/commctrl.h
View file @
088eb87e
...
...
@@ -42,7 +42,14 @@ BOOL WINAPI InitCommonControlsEx (const INITCOMMONCONTROLSEX*);
LANGID
WINAPI
GetMUILanguage
(
VOID
);
VOID
WINAPI
InitMUILanguage
(
LANGID
uiLang
);
enum
_LI_METRIC
{
LIM_SMALL
,
LIM_LARGE
};
HRESULT
WINAPI
LoadIconWithScaleDown
(
HINSTANCE
,
const
WCHAR
*
,
int
,
int
,
HICON
*
);
HRESULT
WINAPI
LoadIconMetric
(
HINSTANCE
,
const
WCHAR
*
,
int
,
HICON
*
);
#define COMCTL32_VERSION 5
/* dll version */
...
...
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