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
440484fc
Commit
440484fc
authored
Aug 28, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Switch to the window DPI awareness for MDI scrolling.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a5256319
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
mdi.c
dlls/user32/mdi.c
+11
-3
No files found.
dlls/user32/mdi.c
View file @
440484fc
...
...
@@ -1688,11 +1688,14 @@ BOOL WINAPI TranslateMDISysAccel( HWND hwndClient, LPMSG msg )
*/
void
WINAPI
CalcChildScroll
(
HWND
hwnd
,
INT
scroll
)
{
DPI_AWARENESS_CONTEXT
context
;
SCROLLINFO
info
;
RECT
childRect
,
clientRect
;
HWND
*
list
;
DWORD
style
;
context
=
SetThreadDpiAwarenessContext
(
GetWindowDpiAwarenessContext
(
hwnd
));
GetClientRect
(
hwnd
,
&
clientRect
);
SetRectEmpty
(
&
childRect
);
...
...
@@ -1748,6 +1751,7 @@ void WINAPI CalcChildScroll( HWND hwnd, INT scroll )
}
break
;
}
SetThreadDpiAwarenessContext
(
context
);
}
...
...
@@ -1757,10 +1761,12 @@ void WINAPI CalcChildScroll( HWND hwnd, INT scroll )
void
WINAPI
ScrollChildren
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
DPI_AWARENESS_CONTEXT
context
;
INT
newPos
=
-
1
;
INT
curPos
,
length
,
minPos
,
maxPos
,
shift
;
RECT
rect
;
context
=
SetThreadDpiAwarenessContext
(
GetWindowDpiAwarenessContext
(
hWnd
));
GetClientRect
(
hWnd
,
&
rect
);
switch
(
uMsg
)
...
...
@@ -1778,7 +1784,7 @@ void WINAPI ScrollChildren(HWND hWnd, UINT uMsg, WPARAM wParam,
shift
=
GetSystemMetrics
(
SM_CXVSCROLL
);
break
;
default:
return
;
goto
done
;
}
switch
(
wParam
)
...
...
@@ -1801,7 +1807,7 @@ void WINAPI ScrollChildren(HWND hWnd, UINT uMsg, WPARAM wParam,
break
;
case
SB_THUMBTRACK
:
return
;
goto
done
;
case
SB_TOP
:
newPos
=
minPos
;
...
...
@@ -1811,7 +1817,7 @@ void WINAPI ScrollChildren(HWND hWnd, UINT uMsg, WPARAM wParam,
break
;
case
SB_ENDSCROLL
:
CalcChildScroll
(
hWnd
,(
uMsg
==
WM_VSCROLL
)
?
SB_VERT
:
SB_HORZ
);
return
;
goto
done
;
}
if
(
newPos
>
maxPos
)
...
...
@@ -1828,6 +1834,8 @@ void WINAPI ScrollChildren(HWND hWnd, UINT uMsg, WPARAM wParam,
else
ScrollWindowEx
(
hWnd
,
curPos
-
newPos
,
0
,
NULL
,
NULL
,
0
,
NULL
,
SW_INVALIDATE
|
SW_ERASE
|
SW_SCROLLCHILDREN
);
done:
SetThreadDpiAwarenessContext
(
context
);
}
...
...
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