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
9615e297
Commit
9615e297
authored
Jun 19, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Jun 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Add a test for creating ITextDocument.
parent
76ee788a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
richole.c
dlls/riched20/tests/richole.c
+12
-0
No files found.
dlls/riched20/tests/richole.c
View file @
9615e297
...
...
@@ -29,8 +29,12 @@
#include <ole2.h>
#include <richedit.h>
#include <richole.h>
#include <tom.h>
#include <wine/test.h>
#include <initguid.h>
DEFINE_GUID
(
IID_ITextDocument
,
0x8cc497c0
,
0xa1df
,
0x11ce
,
0x80
,
0x98
,
0x00
,
0xaa
,
0x00
,
0x47
,
0xbe
,
0x5d
);
static
HMODULE
hmoduleRichEdit
;
static
HWND
new_window
(
LPCTSTR
lpClassName
,
DWORD
dwStyle
,
HWND
parent
)
...
...
@@ -52,6 +56,8 @@ static HWND new_richedit(HWND parent)
START_TEST
(
richole
)
{
IRichEditOle
*
reOle
=
NULL
;
ITextDocument
*
txtDoc
=
NULL
;
HRESULT
hres
;
LRESULT
res
;
HWND
w
;
...
...
@@ -70,6 +76,12 @@ START_TEST(richole)
ok
(
res
,
"SendMessage
\n
"
);
ok
(
reOle
!=
NULL
,
"EM_GETOLEINTERFACE
\n
"
);
hres
=
IUnknown_QueryInterface
(
reOle
,
&
IID_ITextDocument
,
(
void
**
)
&
txtDoc
);
ok
(
hres
==
S_OK
,
"IRichEditOle_QueryInterface
\n
"
);
ok
(
txtDoc
!=
NULL
,
"IRichEditOle_QueryInterface
\n
"
);
ITextDocument_Release
(
txtDoc
);
IUnknown_Release
(
reOle
);
DestroyWindow
(
w
);
}
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