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
bab4c36d
Commit
bab4c36d
authored
Nov 13, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add support for pasting CF_BITMAP.
parent
fa455f59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
clipboard.c
dlls/ole32/clipboard.c
+25
-0
No files found.
dlls/ole32/clipboard.c
View file @
bab4c36d
...
...
@@ -1133,6 +1133,8 @@ static DWORD get_tymed_from_nonole_cf(UINT cf)
return
TYMED_ENHMF
;
case
CF_METAFILEPICT
:
return
TYMED_MFPICT
;
case
CF_BITMAP
:
return
TYMED_GDI
;
default:
FIXME
(
"returning TYMED_NULL for cf %04x
\n
"
,
cf
);
return
TYMED_NULL
;
...
...
@@ -1310,6 +1312,27 @@ static HRESULT get_stgmed_for_emf(HENHMETAFILE hemf, STGMEDIUM *med)
return
S_OK
;
}
/************************************************************************
* get_stgmed_for_bitmap
*
* Returns a stg medium with a bitmap based on the handle
*/
static
HRESULT
get_stgmed_for_bitmap
(
HBITMAP
hbmp
,
STGMEDIUM
*
med
)
{
HRESULT
hr
;
med
->
pUnkForRelease
=
NULL
;
med
->
tymed
=
TYMED_NULL
;
hr
=
dup_bitmap
(
hbmp
,
&
med
->
u
.
hBitmap
);
if
(
FAILED
(
hr
))
return
hr
;
med
->
tymed
=
TYMED_GDI
;
return
S_OK
;
}
static
inline
BOOL
string_off_equal
(
const
DVTARGETDEVICE
*
t1
,
WORD
off1
,
const
DVTARGETDEVICE
*
t2
,
WORD
off2
)
{
const
WCHAR
*
str1
,
*
str2
;
...
...
@@ -1401,6 +1424,8 @@ static HRESULT WINAPI snapshot_GetData(IDataObject *iface, FORMATETC *fmt,
hr
=
get_stgmed_for_stream
(
h
,
med
);
else
if
(
mask
&
TYMED_ENHMF
)
hr
=
get_stgmed_for_emf
((
HENHMETAFILE
)
h
,
med
);
else
if
(
mask
&
TYMED_GDI
)
hr
=
get_stgmed_for_bitmap
((
HBITMAP
)
h
,
med
);
else
{
FIXME
(
"Unhandled tymed - mask %x req tymed %x
\n
"
,
mask
,
fmt
->
tymed
);
...
...
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