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
53284d2a
Commit
53284d2a
authored
Jan 09, 2011
by
Joel Holdsworth
Committed by
Alexandre Julliard
Jan 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/rebar: Moved drag notify code into REBAR_MouseMove.
parent
ebadd4ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
rebar.c
dlls/comctl32/rebar.c
+14
-14
No files found.
dlls/comctl32/rebar.c
View file @
53284d2a
...
...
@@ -2044,20 +2044,6 @@ REBAR_HandleLRDrag (REBAR_INFO *infoPtr, const POINT *ptsmove)
INT
movement
,
xBand
,
cxLeft
=
0
;
BOOL
shrunkBands
=
FALSE
;
/* on first significant mouse movement, issue notify */
if
(
!
(
infoPtr
->
fStatus
&
BEGIN_DRAG_ISSUED
))
{
if
(
REBAR_Notify_NMREBAR
(
infoPtr
,
-
1
,
RBN_BEGINDRAG
))
{
/* Notify returned TRUE - abort drag */
infoPtr
->
dragStart
.
x
=
0
;
infoPtr
->
dragStart
.
y
=
0
;
infoPtr
->
dragNow
=
infoPtr
->
dragStart
;
infoPtr
->
iGrabbedBand
=
-
1
;
ReleaseCapture
();
return
;
}
infoPtr
->
fStatus
|=
BEGIN_DRAG_ISSUED
;
}
iHitBand
=
infoPtr
->
iGrabbedBand
;
iRowBegin
=
get_row_begin_for_band
(
infoPtr
,
iHitBand
);
iRowEnd
=
get_row_end_for_band
(
infoPtr
,
iHitBand
);
...
...
@@ -3095,6 +3081,20 @@ REBAR_MouseMove (REBAR_INFO *infoPtr, LPARAM lParam)
if
((
abs
(
ptMove
.
x
-
infoPtr
->
dragNow
.
x
)
<=
mindragx
)
&&
(
abs
(
ptMove
.
y
-
infoPtr
->
dragNow
.
y
)
<=
mindragy
))
return
0
;
/* on first significant mouse movement, issue notify */
if
(
!
(
infoPtr
->
fStatus
&
BEGIN_DRAG_ISSUED
))
{
if
(
REBAR_Notify_NMREBAR
(
infoPtr
,
-
1
,
RBN_BEGINDRAG
))
{
/* Notify returned TRUE - abort drag */
infoPtr
->
dragStart
.
x
=
0
;
infoPtr
->
dragStart
.
y
=
0
;
infoPtr
->
dragNow
=
infoPtr
->
dragStart
;
infoPtr
->
iGrabbedBand
=
-
1
;
ReleaseCapture
();
return
0
;
}
infoPtr
->
fStatus
|=
BEGIN_DRAG_ISSUED
;
}
/* Test for valid drag case - must not be first band in row */
if
((
yPtMove
<
band
->
rcBand
.
top
)
||
(
yPtMove
>
band
->
rcBand
.
bottom
))
{
...
...
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