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
8f9d07f1
Commit
8f9d07f1
authored
Jun 14, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 32->16 mapping for SBM_GETRANGE/SBM_SETRANGE messages.
Added support for SBM_GETRANGE16 message in the scrollbar window proc.
parent
a9d5f082
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
scroll.c
controls/scroll.c
+6
-2
winproc.c
windows/winproc.c
+21
-0
No files found.
controls/scroll.c
View file @
8f9d07f1
...
...
@@ -1378,8 +1378,12 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
return
0
;
case
SBM_GETRANGE16
:
FIXME
(
"don't know how to handle SBM_GETRANGE16 (wp=%04x,lp=%08lx)
\n
"
,
wParam
,
lParam
);
return
0
;
{
INT
min
,
max
;
SCROLL_GetScrollRange
(
hwnd
,
SB_CTL
,
&
min
,
&
max
);
return
MAKELRESULT
(
min
,
max
);
}
case
SBM_GETRANGE
:
return
SCROLL_GetScrollRange
(
hwnd
,
SB_CTL
,
(
LPINT
)
wParam
,
(
LPINT
)
lParam
);
...
...
windows/winproc.c
View file @
8f9d07f1
...
...
@@ -1876,6 +1876,16 @@ INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32, WPARAM wParam32,
*
pwparam16
=
(
WPARAM16
)
LOWORD
(
wParam32
);
switch
(
msg32
)
{
case
SBM_SETRANGE
:
*
pmsg16
=
SBM_SETRANGE16
;
*
plparam
=
MAKELPARAM
(
wParam32
,
*
plparam
);
*
pwparam16
=
0
;
return
0
;
case
SBM_GETRANGE
:
*
pmsg16
=
SBM_GETRANGE16
;
return
1
;
case
BM_GETCHECK
:
case
BM_SETCHECK
:
case
BM_GETSTATE
:
...
...
@@ -2385,6 +2395,11 @@ void WINPROC_UnmapMsg32ATo16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
{
switch
(
msg
)
{
case
SBM_GETRANGE
:
*
(
LPINT
)
wParam
=
LOWORD
(
p16
->
lResult
);
*
(
LPINT
)
lParam
=
HIWORD
(
p16
->
lResult
);
break
;
case
LB_ADDFILE
:
case
LB_ADDSTRING
:
case
LB_DIR
:
...
...
@@ -2934,6 +2949,9 @@ LRESULT WINAPI __wine_call_wndproc_32A( HWND16 hwnd, UINT16 msg, WPARAM16 wParam
WPARAM
wParam32
;
HWND
hwnd32
=
WIN_Handle32
(
hwnd
);
TRACE_
(
msg
)(
"func %p (hwnd=%p,msg=%s,wp=%08x,lp=%08lx)
\n
"
,
func
,
hwnd32
,
SPY_GetMsgName
(
msg
,
hwnd32
),
wParam
,
lParam
);
if
(
WINPROC_MapMsg16To32A
(
hwnd32
,
msg
,
wParam
,
&
msg32
,
&
wParam32
,
&
lParam
)
==
-
1
)
return
0
;
result
=
WINPROC_CallWndProc
(
func
,
hwnd32
,
msg32
,
wParam32
,
lParam
);
...
...
@@ -2952,6 +2970,9 @@ LRESULT WINAPI __wine_call_wndproc_32W( HWND16 hwnd, UINT16 msg, WPARAM16 wPara
WPARAM
wParam32
;
HWND
hwnd32
=
WIN_Handle32
(
hwnd
);
TRACE_
(
msg
)(
"func %p (hwnd=%p,msg=%s,wp=%08x,lp=%08lx)
\n
"
,
func
,
hwnd32
,
SPY_GetMsgName
(
msg
,
hwnd32
),
wParam
,
lParam
);
if
(
WINPROC_MapMsg16To32W
(
hwnd32
,
msg
,
wParam
,
&
msg32
,
&
wParam32
,
&
lParam
)
==
-
1
)
return
0
;
result
=
WINPROC_CallWndProc
(
func
,
hwnd32
,
msg32
,
wParam32
,
lParam
);
...
...
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