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
f85985ab
Commit
f85985ab
authored
Jul 05, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move WM_NCCREATE scroll handling from user32.
parent
4de61c46
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
32 deletions
+8
-32
defwnd.c
dlls/user32/defwnd.c
+0
-32
defwnd.c
dlls/win32u/defwnd.c
+8
-0
No files found.
dlls/user32/defwnd.c
View file @
f85985ab
...
...
@@ -93,22 +93,6 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
switch
(
msg
)
{
case
WM_NCCREATE
:
if
(
lParam
)
{
CREATESTRUCTA
*
cs
=
(
CREATESTRUCTA
*
)
lParam
;
result
=
NtUserMessageCall
(
hwnd
,
msg
,
wParam
,
lParam
,
0
,
NtUserDefWindowProc
,
TRUE
);
if
(
cs
->
style
&
(
WS_HSCROLL
|
WS_VSCROLL
))
{
SCROLLINFO
si
=
{
sizeof
si
,
SIF_ALL
,
0
,
100
,
0
,
0
,
0
};
NtUserSetScrollInfo
(
hwnd
,
SB_HORZ
,
&
si
,
FALSE
);
NtUserSetScrollInfo
(
hwnd
,
SB_VERT
,
&
si
,
FALSE
);
}
}
break
;
case
WM_SYSCOMMAND
:
result
=
NC_HandleSysCommand
(
hwnd
,
wParam
,
lParam
);
break
;
...
...
@@ -220,22 +204,6 @@ LRESULT WINAPI DefWindowProcW(
switch
(
msg
)
{
case
WM_NCCREATE
:
if
(
lParam
)
{
CREATESTRUCTW
*
cs
=
(
CREATESTRUCTW
*
)
lParam
;
result
=
NtUserMessageCall
(
hwnd
,
msg
,
wParam
,
lParam
,
0
,
NtUserDefWindowProc
,
FALSE
);
if
(
cs
->
style
&
(
WS_HSCROLL
|
WS_VSCROLL
))
{
SCROLLINFO
si
=
{
sizeof
si
,
SIF_ALL
,
0
,
100
,
0
,
0
,
0
};
NtUserSetScrollInfo
(
hwnd
,
SB_HORZ
,
&
si
,
FALSE
);
NtUserSetScrollInfo
(
hwnd
,
SB_VERT
,
&
si
,
FALSE
);
}
}
break
;
case
WM_SYSCOMMAND
:
result
=
NC_HandleSysCommand
(
hwnd
,
wParam
,
lParam
);
break
;
...
...
dlls/win32u/defwnd.c
View file @
f85985ab
...
...
@@ -2369,6 +2369,14 @@ LRESULT default_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
{
CREATESTRUCTW
*
cs
=
(
CREATESTRUCTW
*
)
lparam
;
set_window_text
(
hwnd
,
cs
->
lpszName
,
ansi
);
if
(
cs
->
style
&
(
WS_HSCROLL
|
WS_VSCROLL
))
{
SCROLLINFO
si
=
{
.
cbSize
=
sizeof
(
si
),
.
fMask
=
SIF_ALL
,
.
nMax
=
100
};
NtUserSetScrollInfo
(
hwnd
,
SB_HORZ
,
&
si
,
FALSE
);
NtUserSetScrollInfo
(
hwnd
,
SB_VERT
,
&
si
,
FALSE
);
}
result
=
1
;
}
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