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
72659c99
Commit
72659c99
authored
Jun 27, 2003
by
Troy Rollo
Committed by
Alexandre Julliard
Jun 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented OleDraw.
parent
996dc014
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
ole2.c
dlls/ole32/ole2.c
+39
-0
ole32.spec
dlls/ole32/ole32.spec
+1
-1
No files found.
dlls/ole32/ole2.c
View file @
72659c99
...
...
@@ -2259,6 +2259,45 @@ HGLOBAL16 WINAPI OleMetaFilePictFromIconAndLabel16(
}
/******************************************************************************
* OleDraw (OLE32.101)
*
* The operation of this function is documented literally in the WinAPI
* documentation to involve a QueryInterface for the IViewObject interface,
* followed by a call to IViewObject::Draw.
*/
HRESULT
WINAPI
OleDraw
(
IUnknown
*
pUnk
,
DWORD
dwAspect
,
HDC
hdcDraw
,
LPCRECT
lprcBounds
)
{
HRESULT
hres
;
IViewObject
*
viewobject
;
hres
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IViewObject
,
(
void
**
)
&
viewobject
);
if
(
SUCCEEDED
(
hres
))
{
RECTL
rectl
;
rectl
.
left
=
lprcBounds
->
left
;
rectl
.
right
=
lprcBounds
->
right
;
rectl
.
top
=
lprcBounds
->
top
;
rectl
.
bottom
=
lprcBounds
->
bottom
;
hres
=
IViewObject_Draw
(
viewobject
,
dwAspect
,
-
1
,
0
,
0
,
0
,
hdcDraw
,
&
rectl
,
0
,
0
,
0
);
IViewObject_Release
(
viewobject
);
return
hres
;
}
else
{
return
DV_E_NOIVIEWOBJECT
;
}
}
/******************************************************************************
* DllDebugObjectRPCHook (OLE32.62)
* turns on and off internal debugging, pointer is only used on macintosh
*/
...
...
dlls/ole32/ole32.spec
View file @
72659c99
...
...
@@ -98,7 +98,7 @@
98 stdcall OleCreateStaticFromData(ptr ptr long ptr ptr ptr ptr)
99 stdcall OleDestroyMenuDescriptor(long)
100 stdcall OleDoAutoConvert(ptr ptr)
101 st
ub OleDraw
101 st
dcall OleDraw(ptr long long ptr)
102 stdcall OleDuplicateData(long long long)
103 stdcall OleFlushClipboard()
104 stdcall OleGetAutoConvert(ptr ptr)
...
...
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