Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1d21d24a
Commit
1d21d24a
authored
Oct 06, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Show arrow cursor over scrollbar.
parent
93619188
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
editor.c
dlls/riched20/editor.c
+19
-0
No files found.
dlls/riched20/editor.c
View file @
1d21d24a
...
...
@@ -2103,10 +2103,29 @@ static BOOL ME_SetCursor(ME_TextEditor *editor)
POINT
pt
;
BOOL
isExact
;
int
offset
;
SCROLLBARINFO
sbi
;
DWORD
messagePos
=
GetMessagePos
();
pt
.
x
=
(
short
)
LOWORD
(
messagePos
);
pt
.
y
=
(
short
)
HIWORD
(
messagePos
);
sbi
.
cbSize
=
sizeof
(
sbi
);
GetScrollBarInfo
(
editor
->
hWnd
,
OBJID_HSCROLL
,
&
sbi
);
if
(
!
(
sbi
.
rgstate
[
0
]
&
(
STATE_SYSTEM_INVISIBLE
|
STATE_SYSTEM_OFFSCREEN
))
&&
PtInRect
(
&
sbi
.
rcScrollBar
,
pt
))
{
SetCursor
(
LoadCursorW
(
NULL
,
(
WCHAR
*
)
IDC_ARROW
));
return
TRUE
;
}
sbi
.
cbSize
=
sizeof
(
sbi
);
GetScrollBarInfo
(
editor
->
hWnd
,
OBJID_VSCROLL
,
&
sbi
);
if
(
!
(
sbi
.
rgstate
[
0
]
&
(
STATE_SYSTEM_INVISIBLE
|
STATE_SYSTEM_OFFSCREEN
))
&&
PtInRect
(
&
sbi
.
rcScrollBar
,
pt
))
{
SetCursor
(
LoadCursorW
(
NULL
,
(
WCHAR
*
)
IDC_ARROW
));
return
TRUE
;
}
ScreenToClient
(
editor
->
hWnd
,
&
pt
);
if
((
GetWindowLongW
(
editor
->
hWnd
,
GWL_STYLE
)
&
ES_SELECTIONBAR
)
&&
(
pt
.
x
<
editor
->
selofs
||
(
editor
->
nSelectionType
==
stLine
&&
GetCapture
()
==
editor
->
hWnd
)))
...
...
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