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
22cab055
Commit
22cab055
authored
Jun 28, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Partially move ScrollBarWndProc implementation from user32.
parent
b4ba6de6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
3 deletions
+35
-3
scroll.c
dlls/user32/scroll.c
+1
-3
message.c
dlls/win32u/message.c
+14
-0
scroll.c
dlls/win32u/scroll.c
+15
-0
win32u_private.h
dlls/win32u/win32u_private.h
+4
-0
ntuser.h
include/ntuser.h
+1
-0
No files found.
dlls/user32/scroll.c
View file @
22cab055
...
...
@@ -1513,10 +1513,8 @@ LRESULT WINAPI USER_ScrollBarProc( HWND hwnd, UINT message, WPARAM wParam, LPARA
break
;
case
WM_ERASEBKGND
:
return
1
;
case
WM_GETDLGCODE
:
return
DLGC_WANTARROWS
;
/* Windows returns this value */
return
NtUserMessageCall
(
hwnd
,
message
,
wParam
,
lParam
,
0
,
NtUserScrollBarWndProc
,
!
unicode
);
case
WM_PAINT
:
{
...
...
dlls/win32u/message.c
View file @
22cab055
...
...
@@ -2889,17 +2889,25 @@ LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpa
{
switch
(
type
)
{
case
NtUserScrollBarWndProc
:
return
scroll_bar_window_proc
(
hwnd
,
msg
,
wparam
,
lparam
,
ansi
);
case
NtUserPopupMenuWndProc
:
return
popup_menu_window_proc
(
hwnd
,
msg
,
wparam
,
lparam
);
case
NtUserDesktopWindowProc
:
return
desktop_window_proc
(
hwnd
,
msg
,
wparam
,
lparam
);
case
NtUserDefWindowProc
:
return
default_window_proc
(
hwnd
,
msg
,
wparam
,
lparam
,
ansi
);
case
NtUserCallWindowProc
:
return
init_win_proc_params
(
(
struct
win_proc_params
*
)
result_info
,
hwnd
,
msg
,
wparam
,
lparam
,
ansi
);
case
NtUserSendMessage
:
return
send_window_message
(
hwnd
,
msg
,
wparam
,
lparam
,
ansi
);
case
NtUserSendMessageTimeout
:
{
struct
send_message_timeout_params
*
params
=
(
void
*
)
result_info
;
...
...
@@ -2908,18 +2916,24 @@ LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpa
params
->
timeout
,
&
res
,
ansi
);
return
res
;
}
case
NtUserSendNotifyMessage
:
return
send_notify_message
(
hwnd
,
msg
,
wparam
,
lparam
,
ansi
);
case
NtUserSendMessageCallback
:
return
send_message_callback
(
hwnd
,
msg
,
wparam
,
lparam
,
(
void
*
)
result_info
,
ansi
);
case
NtUserClipboardWindowProc
:
return
user_driver
->
pClipboardWindowProc
(
hwnd
,
msg
,
wparam
,
lparam
);
case
NtUserSpyEnter
:
spy_enter_message
(
ansi
,
hwnd
,
msg
,
wparam
,
lparam
);
return
0
;
case
NtUserSpyExit
:
spy_exit_message
(
ansi
,
hwnd
,
msg
,
(
LPARAM
)
result_info
,
wparam
,
lparam
);
return
0
;
default:
FIXME
(
"%p %x %lx %lx %p %x %x
\n
"
,
hwnd
,
msg
,
wparam
,
lparam
,
result_info
,
type
,
ansi
);
}
...
...
dlls/win32u/scroll.c
View file @
22cab055
...
...
@@ -68,6 +68,21 @@ static BOOL show_scroll_bar( HWND hwnd, int bar, BOOL show_horz, BOOL show_vert
return
FALSE
;
/* no frame changes */
}
LRESULT
scroll_bar_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
,
BOOL
ansi
)
{
switch
(
msg
)
{
case
WM_ERASEBKGND
:
return
1
;
case
WM_GETDLGCODE
:
return
DLGC_WANTARROWS
;
/* Windows returns this value */
default:
return
default_window_proc
(
hwnd
,
msg
,
wparam
,
lparam
,
ansi
);
}
}
/*************************************************************************
* NtUserShowScrollBar (win32u.@)
*/
...
...
dlls/win32u/win32u_private.h
View file @
22cab055
...
...
@@ -440,6 +440,10 @@ extern LRESULT send_message_timeout( HWND hwnd, UINT msg, WPARAM wparam, LPARAM
extern
BOOL
process_rawinput_message
(
MSG
*
msg
,
UINT
hw_id
,
const
struct
hardware_msg_data
*
msg_data
)
DECLSPEC_HIDDEN
;
extern
BOOL
rawinput_device_get_usages
(
HANDLE
handle
,
USHORT
*
usage_page
,
USHORT
*
usage
)
DECLSPEC_HIDDEN
;
/* scroll.c */
extern
LRESULT
scroll_bar_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
,
BOOL
ansi
)
DECLSPEC_HIDDEN
;
/* sysparams.c */
extern
BOOL
enable_thunk_lock
DECLSPEC_HIDDEN
;
extern
DWORD
process_layout
DECLSPEC_HIDDEN
;
...
...
include/ntuser.h
View file @
22cab055
...
...
@@ -211,6 +211,7 @@ struct render_synthesized_format_params
/* NtUserMessageCall codes */
enum
{
NtUserScrollBarWndProc
=
0x029a
,
NtUserPopupMenuWndProc
=
0x029c
,
NtUserDesktopWindowProc
=
0x029d
,
NtUserDefWindowProc
=
0x029e
,
...
...
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