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
4688c7ca
Commit
4688c7ca
authored
Mar 07, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Mar 07, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement SPI_GETICONMETRICS.
Change WARN -> FIXME for unimplemented SPI_s and set appropriate error.
parent
fddbcf3c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
2 deletions
+51
-2
winuser.h
include/winuser.h
+18
-0
main.c
misc/main.c
+33
-2
No files found.
include/winuser.h
View file @
4688c7ca
...
...
@@ -2222,6 +2222,24 @@ typedef struct {
DECL_WINELIB_TYPE_AW
(
NONCLIENTMETRICS
)
DECL_WINELIB_TYPE_AW
(
LPNONCLIENTMETRICS
)
typedef
struct
tagICONMETRICSA
{
UINT
cbSize
;
int
iHorzSpacing
;
int
iVertSpacing
;
int
iTitleWrap
;
LOGFONTA
lfFont
;
}
ICONMETRICSA
,
*
LPICONMETRICSA
;
typedef
struct
tagICONMETRICSW
{
UINT
cbSize
;
int
iHorzSpacing
;
int
iVertSpacing
;
int
iTitleWrap
;
LOGFONTW
lfFont
;
}
ICONMETRICSW
,
*
LPICONMETRICSW
;
DECL_WINELIB_TYPE_AW
(
ICONMETRICS
)
DECL_WINELIB_TYPE_AW
(
LPICONMETRICS
)
/* Window Styles */
#define WS_OVERLAPPED 0x00000000L
...
...
misc/main.c
View file @
4688c7ca
...
...
@@ -45,6 +45,7 @@
#include "wingdi.h"
#include "wine/winuser16.h"
#include "tweak.h"
#include "winerror.h"
/**********************************************************************/
...
...
@@ -946,6 +947,21 @@ BOOL WINAPI SystemParametersInfoA( UINT uAction, UINT uParam,
lpLogFont
->
lfPitchAndFamily
=
DEFAULT_PITCH
|
FF_SWISS
;
break
;
}
case
SPI_GETICONMETRICS
:
{
LPICONMETRICSA
lpIcon
=
lpvParam
;
if
(
!
lpIcon
||
lpIcon
->
cbSize
!=
sizeof
(
*
lpIcon
))
return
FALSE
;
SystemParametersInfoA
(
SPI_ICONHORIZONTALSPACING
,
0
,
&
lpIcon
->
iHorzSpacing
,
FALSE
);
SystemParametersInfoA
(
SPI_ICONVERTICALSPACING
,
0
,
&
lpIcon
->
iVertSpacing
,
FALSE
);
SystemParametersInfoA
(
SPI_GETICONTITLEWRAP
,
0
,
&
lpIcon
->
iTitleWrap
,
FALSE
);
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
&
lpIcon
->
lfFont
,
FALSE
);
break
;
}
case
SPI_GETWORKAREA
:
SetRect
(
(
RECT
*
)
lpvParam
,
0
,
0
,
GetSystemMetrics
(
SM_CXSCREEN
),
...
...
@@ -1234,8 +1250,9 @@ BOOL16 WINAPI SystemParametersInfo16( UINT16 uAction, UINT16 uParam,
break
;
default:
WARN_
(
system
)(
"Unknown option %d.
\n
"
,
uAction
);
break
;
FIXME_
(
system
)(
"Unknown option %d.
\n
"
,
uAction
);
SetLastError
(
ERROR_INVALID_SPI_VALUE
);
return
0
;
}
return
1
;
}
...
...
@@ -1291,6 +1308,20 @@ BOOL WINAPI SystemParametersInfoW( UINT uAction, UINT uParam,
lpLogFont
->
lfPitchAndFamily
=
DEFAULT_PITCH
|
FF_SWISS
;
}
break
;
case
SPI_GETICONMETRICS
:
{
LPICONMETRICSW
lpIcon
=
lpvParam
;
if
(
!
lpIcon
||
lpIcon
->
cbSize
!=
sizeof
(
*
lpIcon
))
return
FALSE
;
SystemParametersInfoW
(
SPI_ICONHORIZONTALSPACING
,
0
,
&
lpIcon
->
iHorzSpacing
,
FALSE
);
SystemParametersInfoW
(
SPI_ICONVERTICALSPACING
,
0
,
&
lpIcon
->
iVertSpacing
,
FALSE
);
SystemParametersInfoW
(
SPI_GETICONTITLEWRAP
,
0
,
&
lpIcon
->
iTitleWrap
,
FALSE
);
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
lpIcon
->
lfFont
,
FALSE
);
break
;
}
case
SPI_GETNONCLIENTMETRICS
:
{
/* FIXME: implement correctly */
LPNONCLIENTMETRICSW
lpnm
=
(
LPNONCLIENTMETRICSW
)
lpvParam
;
...
...
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