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
30d667bd
Commit
30d667bd
authored
Feb 24, 2013
by
Daniel Jelinski
Committed by
Alexandre Julliard
Feb 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/imagelist: Allow only one drag cursor.
parent
79bda3d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
imagelist.c
dlls/comctl32/imagelist.c
+9
-5
No files found.
dlls/comctl32/imagelist.c
View file @
30d667bd
...
...
@@ -114,6 +114,7 @@ typedef struct
{
HWND
hwnd
;
HIMAGELIST
himl
;
HIMAGELIST
himlNoCursor
;
/* position of the drag image relative to the window */
INT
x
;
INT
y
;
...
...
@@ -126,7 +127,7 @@ typedef struct
HBITMAP
hbmBg
;
}
INTERNALDRAG
;
static
INTERNALDRAG
InternalDrag
=
{
0
,
0
,
0
,
0
,
0
,
0
,
FALSE
,
0
};
static
INTERNALDRAG
InternalDrag
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
FALSE
,
0
};
static
HBITMAP
ImageList_CreateImage
(
HDC
hdc
,
HIMAGELIST
himl
,
UINT
count
);
static
HRESULT
ImageListImpl_CreateInstance
(
const
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
);
...
...
@@ -607,7 +608,7 @@ ImageList_BeginDrag (HIMAGELIST himlTrack, INT iTrack,
cx
=
himlTrack
->
cx
;
cy
=
himlTrack
->
cy
;
InternalDrag
.
himl
=
ImageList_Create
(
cx
,
cy
,
himlTrack
->
flags
,
1
,
1
);
InternalDrag
.
himl
NoCursor
=
InternalDrag
.
himl
=
ImageList_Create
(
cx
,
cy
,
himlTrack
->
flags
,
1
,
1
);
if
(
InternalDrag
.
himl
==
NULL
)
{
WARN
(
"Error creating drag image list!
\n
"
);
return
FALSE
;
...
...
@@ -1635,8 +1636,10 @@ ImageList_EndDrag (void)
{
/* cleanup the InternalDrag struct */
InternalDrag
.
hwnd
=
0
;
if
(
InternalDrag
.
himl
!=
InternalDrag
.
himlNoCursor
)
ImageList_Destroy
(
InternalDrag
.
himlNoCursor
);
ImageList_Destroy
(
InternalDrag
.
himl
);
InternalDrag
.
himl
=
0
;
InternalDrag
.
himl
NoCursor
=
InternalDrag
.
himl
=
0
;
InternalDrag
.
x
=
0
;
InternalDrag
.
y
=
0
;
InternalDrag
.
dxHotspot
=
0
;
...
...
@@ -2699,7 +2702,7 @@ ImageList_SetDragCursorImage (HIMAGELIST himlDrag, INT iDrag,
visible
=
InternalDrag
.
bShow
;
himlTemp
=
ImageList_Merge
(
InternalDrag
.
himl
,
0
,
himlDrag
,
iDrag
,
himlTemp
=
ImageList_Merge
(
InternalDrag
.
himl
NoCursor
,
0
,
himlDrag
,
iDrag
,
dxHotspot
,
dyHotspot
);
if
(
visible
)
{
...
...
@@ -2713,7 +2716,8 @@ ImageList_SetDragCursorImage (HIMAGELIST himlDrag, INT iDrag,
InternalDrag
.
hbmBg
=
0
;
}
ImageList_Destroy
(
InternalDrag
.
himl
);
if
(
InternalDrag
.
himl
!=
InternalDrag
.
himlNoCursor
)
ImageList_Destroy
(
InternalDrag
.
himl
);
InternalDrag
.
himl
=
himlTemp
;
if
(
visible
)
{
...
...
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