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
f1d22c0e
Commit
f1d22c0e
authored
Mar 16, 2015
by
Jactry Zeng
Committed by
Alexandre Julliard
Mar 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Implement IOleWindow::GetWindow.
parent
bbb97558
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
richole.c
dlls/riched20/richole.c
+7
-2
richole.c
dlls/riched20/tests/richole.c
+29
-0
No files found.
dlls/riched20/richole.c
View file @
f1d22c0e
...
...
@@ -363,8 +363,13 @@ static HRESULT WINAPI IOleWindow_fnContextSensitiveHelp(IOleWindow *iface, BOOL
static
HRESULT
WINAPI
IOleWindow_fnGetWindow
(
IOleWindow
*
iface
,
HWND
*
phwnd
)
{
IOleClientSiteImpl
*
This
=
impl_from_IOleWindow
(
iface
);
FIXME
(
"not implemented: (%p)->(%p)
\n
"
,
This
,
phwnd
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
phwnd
);
if
(
!
phwnd
)
return
E_INVALIDARG
;
*
phwnd
=
This
->
reOle
->
editor
->
hWnd
;
return
S_OK
;
}
static
const
IOleWindowVtbl
olewinvt
=
{
...
...
dlls/riched20/tests/richole.c
View file @
f1d22c0e
...
...
@@ -1000,6 +1000,34 @@ static void test_IOleClientSite_QueryInterface(void)
release_interfaces
(
&
w
,
&
reOle
,
&
txtDoc
,
NULL
);
}
static
void
test_IOleWindow_GetWindow
(
void
)
{
HWND
w
;
IRichEditOle
*
reOle
=
NULL
;
ITextDocument
*
txtDoc
=
NULL
;
IOleClientSite
*
clientSite
=
NULL
;
IOleWindow
*
oleWin
=
NULL
;
HRESULT
hres
;
HWND
hwnd
;
create_interfaces
(
&
w
,
&
reOle
,
&
txtDoc
,
NULL
);
hres
=
IRichEditOle_GetClientSite
(
reOle
,
&
clientSite
);
ok
(
hres
==
S_OK
,
"IRichEditOle_QueryInterface: 0x%08x
\n
"
,
hres
);
hres
=
IOleClientSite_QueryInterface
(
clientSite
,
&
IID_IOleWindow
,
(
void
**
)
&
oleWin
);
ok
(
hres
==
S_OK
,
"IOleClientSite_QueryInterface: 0x%08x
\n
"
,
hres
);
hres
=
IOleWindow_GetWindow
(
oleWin
,
&
hwnd
);
ok
(
hres
==
S_OK
,
"IOleClientSite_GetWindow: 0x%08x
\n
"
,
hres
);
ok
(
w
==
hwnd
,
"got wrong pointer
\n
"
);
hres
=
IOleWindow_GetWindow
(
oleWin
,
NULL
);
ok
(
hres
==
E_INVALIDARG
,
"IOleClientSite_GetWindow: 0x%08x
\n
"
,
hres
);
IOleWindow_Release
(
oleWin
);
IOleClientSite_Release
(
clientSite
);
release_interfaces
(
&
w
,
&
reOle
,
&
txtDoc
,
NULL
);
}
START_TEST
(
richole
)
{
/* Must explicitly LoadLibrary(). The test has no references to functions in
...
...
@@ -1019,4 +1047,5 @@ START_TEST(richole)
test_ITextRange_GetDuplicate
();
test_ITextRange_Collapse
();
test_IOleClientSite_QueryInterface
();
test_IOleWindow_GetWindow
();
}
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