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
43015435
Commit
43015435
authored
May 25, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
May 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: header: Implement HDM_CREATEDRAGIMAGE.
parent
bfe030df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
header.c
dlls/comctl32/header.c
+31
-2
No files found.
dlls/comctl32/header.c
View file @
43015435
...
...
@@ -875,8 +875,37 @@ HEADER_SendClickNotify (HWND hwnd, UINT code, INT iItem)
static
LRESULT
HEADER_CreateDragImage
(
HWND
hwnd
,
WPARAM
wParam
)
{
FIXME
(
"empty stub!
\n
"
);
return
0
;
HEADER_INFO
*
infoPtr
=
HEADER_GetInfoPtr
(
hwnd
);
HEADER_ITEM
*
lpItem
;
HIMAGELIST
himl
;
HBITMAP
hMemory
,
hOldBitmap
;
HDC
hMemoryDC
;
HDC
hDeviceDC
;
int
height
,
width
;
if
(
wParam
<
0
||
wParam
>=
infoPtr
->
uNumItem
)
return
FALSE
;
lpItem
=
&
infoPtr
->
items
[
wParam
];
width
=
lpItem
->
rect
.
right
-
lpItem
->
rect
.
left
;
height
=
lpItem
->
rect
.
bottom
-
lpItem
->
rect
.
top
;
hDeviceDC
=
GetDC
(
NULL
);
hMemoryDC
=
CreateCompatibleDC
(
hDeviceDC
);
hMemory
=
CreateCompatibleBitmap
(
hDeviceDC
,
width
,
height
);
ReleaseDC
(
NULL
,
hDeviceDC
);
hOldBitmap
=
SelectObject
(
hMemoryDC
,
hMemory
);
SetViewportOrgEx
(
hMemoryDC
,
-
lpItem
->
rect
.
left
,
-
lpItem
->
rect
.
top
,
NULL
);
HEADER_DrawItem
(
hwnd
,
hMemoryDC
,
wParam
,
FALSE
);
hMemory
=
SelectObject
(
hMemoryDC
,
hOldBitmap
);
DeleteDC
(
hMemoryDC
);
if
(
hMemory
==
NULL
)
/* if anything failed */
return
FALSE
;
himl
=
ImageList_Create
(
width
,
height
,
ILC_COLORDDB
,
1
,
1
);
ImageList_Add
(
himl
,
hMemory
,
NULL
);
DeleteObject
(
hMemory
);
return
(
LRESULT
)
himl
;
}
...
...
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