Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
f06555a3
Commit
f06555a3
authored
24 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented SmoothScrollWindow.
parent
bf5ceb9e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/comctl32/Makefile.in
+1
-0
1 addition, 0 deletions
dlls/comctl32/Makefile.in
dlls/comctl32/comctl32.spec
+1
-1
1 addition, 1 deletion
dlls/comctl32/comctl32.spec
dlls/comctl32/smoothscroll.c
+112
-0
112 additions, 0 deletions
dlls/comctl32/smoothscroll.c
with
114 additions
and
1 deletion
dlls/comctl32/Makefile.in
+
1
−
0
View file @
f06555a3
...
...
@@ -25,6 +25,7 @@ C_SRCS = \
progress.c
\
propsheet.c
\
rebar.c
\
smoothscroll.c
\
status.c
\
tab.c
\
toolbar.c
\
...
...
This diff is collapsed.
Click to expand it.
dlls/comctl32/comctl32.spec
+
1
−
1
View file @
f06555a3
...
...
@@ -170,7 +170,7 @@ rsrc comctl32
376 stub IntlStrEqWorkerA@16
377 stub IntlStrEqWorkerW@16
382 st
ub
SmoothScrollWindow
@4
382 st
dcall SmoothScrollWindow(ptr)
SmoothScrollWindow
383 stub DoReaderMode@4
384 stub SetPathWordBreakProc@8
385 stdcall DPA_EnumCallback(long long long) DPA_EnumCallback
...
...
This diff is collapsed.
Click to expand it.
dlls/comctl32/smoothscroll.c
0 → 100644
+
112
−
0
View file @
f06555a3
/*
* Undocumented SmoothScrollWindow function from COMCTL32.DLL
*
* Copyright 2000 Marcus Meissner <marcus@jet.franken.de>
*
* TODO
* - actually add smooth scrolling
*/
#include
"winbase.h"
#include
"winreg.h"
#include
"winerror.h"
#include
"commctrl.h"
#include
"debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
commctrl
);
static
DWORD
smoothscroll
=
2
;
typedef
BOOL
(
CALLBACK
*
SCROLLWINDOWEXPROC
)(
HWND
,
INT
,
INT
,
LPRECT
,
LPRECT
,
HRGN
,
LPRECT
,
DWORD
);
typedef
struct
tagSMOOTHSCROLLSTRUCT
{
DWORD
dwSize
;
DWORD
x2
;
HWND
hwnd
;
DWORD
dx
;
DWORD
dy
;
LPRECT
lpscrollrect
;
LPRECT
lpcliprect
;
HRGN
hrgnupdate
;
LPRECT
lpupdaterect
;
DWORD
flags
;
DWORD
stepinterval
;
DWORD
dx_step
;
DWORD
dy_step
;
SCROLLWINDOWEXPROC
scrollfun
;
/* same parameters as ScrollWindowEx */
}
SMOOTHSCROLLSTRUCT
;
/**************************************************************************
* SmoothScrollWindow [COMCTL32.382]
*
* Lots of magic for smooth scrolling windows.
*
* Currently only scrolls ONCE. The comctl32 implementation uses GetTickCount
* and what else to do smooth scrolling.
*/
BOOL
WINAPI
SmoothScrollWindow
(
SMOOTHSCROLLSTRUCT
*
smooth
)
{
LPRECT
lpupdaterect
=
smooth
->
lpupdaterect
;
HRGN
hrgnupdate
=
smooth
->
hrgnupdate
;
RECT
tmprect
;
BOOL
ret
=
TRUE
;
DWORD
flags
=
smooth
->
flags
;
if
(
smooth
->
dwSize
!=
sizeof
(
SMOOTHSCROLLSTRUCT
))
return
FALSE
;
if
(
!
lpupdaterect
)
lpupdaterect
=
&
tmprect
;
SetRectEmpty
(
lpupdaterect
);
if
(
!
(
flags
&
0x40000
))
{
/* no override, use system wide defaults */
if
(
smoothscroll
==
2
)
{
HKEY
hkey
;
smoothscroll
=
0
;
if
(
!
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Control Panel
\\
Desktop"
,
&
hkey
))
{
DWORD
len
=
4
;
RegQueryValueExA
(
hkey
,
"SmoothScroll"
,
0
,
0
,(
LPBYTE
)
&
smoothscroll
,
&
len
);
RegCloseKey
(
hkey
);
}
}
if
(
!
smoothscroll
)
flags
|=
0x20000
;
}
if
(
flags
&
0x20000
)
{
/* are we doing jump scrolling? */
if
((
smooth
->
x2
&
1
)
&&
smooth
->
scrollfun
)
return
smooth
->
scrollfun
(
smooth
->
hwnd
,
smooth
->
dx
,
smooth
->
dy
,
smooth
->
lpscrollrect
,
smooth
->
lpcliprect
,
hrgnupdate
,
lpupdaterect
,
flags
&
0xffff
);
else
return
ScrollWindowEx
(
smooth
->
hwnd
,
smooth
->
dx
,
smooth
->
dy
,
smooth
->
lpscrollrect
,
smooth
->
lpcliprect
,
hrgnupdate
,
lpupdaterect
,
flags
&
0xffff
);
}
FIXME
(
"(hwnd=%x,flags=%lx,x2=%lx): should smooth scroll here.
\n
"
,
smooth
->
hwnd
,
flags
,
smooth
->
x2
);
/* FIXME: do timer based smooth scrolling */
if
((
smooth
->
x2
&
1
)
&&
smooth
->
scrollfun
)
return
smooth
->
scrollfun
(
smooth
->
hwnd
,
smooth
->
dx
,
smooth
->
dy
,
smooth
->
lpscrollrect
,
smooth
->
lpcliprect
,
hrgnupdate
,
lpupdaterect
,
flags
&
0xffff
);
else
return
ScrollWindowEx
(
smooth
->
hwnd
,
smooth
->
dx
,
smooth
->
dy
,
smooth
->
lpscrollrect
,
smooth
->
lpcliprect
,
hrgnupdate
,
lpupdaterect
,
flags
&
0xffff
);
return
ret
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment