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
c707e7d9
Commit
c707e7d9
authored
Sep 11, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement SystemParametersInfo(SPI_GETWORKAREA) properly.
parent
5587387c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
sysparams.c
dlls/user32/sysparams.c
+15
-1
No files found.
dlls/user32/sysparams.c
View file @
c707e7d9
...
...
@@ -1139,6 +1139,19 @@ static void load_nonclient_metrics(void)
spi_loaded
[
SPI_NONCLIENTMETRICS_IDX
]
=
TRUE
;
}
static
BOOL
CALLBACK
enum_monitors
(
HMONITOR
monitor
,
HDC
hdc
,
LPRECT
rect
,
LPARAM
lp
)
{
MONITORINFO
mi
;
mi
.
cbSize
=
sizeof
(
mi
);
if
(
GetMonitorInfoW
(
monitor
,
&
mi
)
&&
(
mi
.
dwFlags
&
MONITORINFOF_PRIMARY
))
{
LPRECT
work
=
(
LPRECT
)
lp
;
*
work
=
mi
.
rcWork
;
return
FALSE
;
}
return
TRUE
;
}
/***********************************************************************
* SystemParametersInfoW (USER32.@)
...
...
@@ -1725,10 +1738,11 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
SetRect
(
&
work_area
,
0
,
0
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
)
);
EnumDisplayMonitors
(
0
,
NULL
,
enum_monitors
,
(
LPARAM
)
&
work_area
);
spi_loaded
[
spi_idx
]
=
TRUE
;
}
CopyRect
(
(
RECT
*
)
pvParam
,
&
work_area
);
TRACE
(
"work area %s
\n
"
,
wine_dbgstr_rect
(
&
work_area
));
break
;
}
...
...
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