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
e3810e3a
Commit
e3810e3a
authored
Nov 01, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for SB_CTL before displaying a caret.
parent
50e8ea38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
scroll.c
controls/scroll.c
+2
-4
No files found.
controls/scroll.c
View file @
e3810e3a
...
...
@@ -816,7 +816,8 @@ void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT nBar,
(
SCROLL_TrackingBar
==
nBar
))
SCROLL_DrawMovingThumb
(
hdc
,
&
rect
,
vertical
,
arrowSize
,
thumbSize
);
if
(
hwnd
==
GetFocus
())
/* if scroll bar has focus, reposition the caret*/
/* if scroll bar has focus, reposition the caret*/
if
(
hwnd
==
GetFocus
()
&&
(
nBar
==
SB_CTL
))
{
if
(
!
vertical
)
{
...
...
@@ -1174,8 +1175,6 @@ LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
/* Create a caret when a ScrollBar get focus*/
RECT
rect
;
int
arrowSize
,
thumbSize
,
thumbPos
,
vertical
;
if
(
hwnd
==
GetFocus
())
{
vertical
=
SCROLL_GetScrollBarRect
(
hwnd
,
SB_CTL
,
&
rect
,
&
arrowSize
,
&
thumbSize
,
&
thumbPos
);
if
(
!
vertical
)
...
...
@@ -1190,7 +1189,6 @@ LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
}
ShowCaret
(
hwnd
);
}
}
break
;
case
WM_KILLFOCUS
:
...
...
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