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
5ee117ba
Commit
5ee117ba
authored
Apr 04, 1999
by
Luc Tourangeau
Committed by
Alexandre Julliard
Apr 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WM_MOUSEMOVE implementation bug fix.
parent
05eb8b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
listbox.c
controls/listbox.c
+8
-2
No files found.
controls/listbox.c
View file @
5ee117ba
...
...
@@ -64,6 +64,7 @@ typedef struct
INT
nb_tabs
;
/* Number of tabs in array */
INT
*
tabs
;
/* Array of tabs */
BOOL
caret_on
;
/* Is caret on? */
BOOL
captured
;
/* Is mouse captured? */
HFONT
font
;
/* Current font */
LCID
locale
;
/* Current locale for string comparisons */
LPHEADCOMBO
lphc
;
/* ComboLBox */
...
...
@@ -1752,6 +1753,7 @@ static LRESULT LISTBOX_HandleLButtonDown( WND *wnd, LB_DESCR *descr,
else
SetFocus
(
(
descr
->
lphc
->
hWndEdit
)
?
descr
->
lphc
->
hWndEdit
:
descr
->
lphc
->
self
->
hwndSelf
)
;
descr
->
captured
=
TRUE
;
SetCapture
(
wnd
->
hwndSelf
);
if
(
index
!=
-
1
&&
!
descr
->
lphc
)
{
...
...
@@ -1777,9 +1779,10 @@ static LRESULT LISTBOX_HandleLButtonUp( WND *wnd, LB_DESCR *descr )
if
(
LISTBOX_Timer
!=
LB_TIMER_NONE
)
KillSystemTimer
(
wnd
->
hwndSelf
,
LB_TIMER_ID
);
LISTBOX_Timer
=
LB_TIMER_NONE
;
if
(
GetCapture
()
==
wnd
->
hwndSelf
)
if
(
descr
->
captured
)
{
ReleaseCapture
();
descr
->
captured
=
FALSE
;
if
(
GetCapture
()
==
wnd
->
hwndSelf
)
ReleaseCapture
();
if
(
descr
->
style
&
LBS_NOTIFY
)
SEND_NOTIFICATION
(
wnd
,
descr
,
LBN_SELCHANGE
);
}
...
...
@@ -1850,6 +1853,8 @@ static void LISTBOX_HandleMouseMove( WND *wnd, LB_DESCR *descr,
INT
index
;
TIMER_DIRECTION
dir
;
if
(
!
descr
->
captured
)
return
;
if
(
descr
->
style
&
LBS_MULTICOLUMN
)
{
if
(
y
<
0
)
y
=
0
;
...
...
@@ -2052,6 +2057,7 @@ static BOOL LISTBOX_Create( WND *wnd, LPHEADCOMBO lphc )
descr
->
nb_tabs
=
0
;
descr
->
tabs
=
NULL
;
descr
->
caret_on
=
TRUE
;
descr
->
captured
=
FALSE
;
descr
->
font
=
0
;
descr
->
locale
=
0
;
/* FIXME */
descr
->
lphc
=
lphc
;
...
...
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