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
36aa6c4c
Commit
36aa6c4c
authored
Jun 25, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Jun 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Implement ITextDocument_fnGetSelection.
parent
74b78100
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
richole.c
dlls/riched20/richole.c
+0
-0
Makefile.in
dlls/riched20/tests/Makefile.in
+1
-1
richole.c
dlls/riched20/tests/richole.c
+33
-0
No files found.
dlls/riched20/richole.c
View file @
36aa6c4c
This diff is collapsed.
Click to expand it.
dlls/riched20/tests/Makefile.in
View file @
36aa6c4c
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
riched20.dll
TESTDLL
=
riched20.dll
IMPORTS
=
ole32 user32 gdi32 kernel32
IMPORTS
=
uuid
ole32 user32 gdi32 kernel32
CTESTS
=
\
CTESTS
=
\
editor.c
\
editor.c
\
...
...
dlls/riched20/tests/richole.c
View file @
36aa6c4c
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
#include <initguid.h>
#include <initguid.h>
DEFINE_GUID
(
IID_ITextDocument
,
0x8cc497c0
,
0xa1df
,
0x11ce
,
0x80
,
0x98
,
0x00
,
0xaa
,
0x00
,
0x47
,
0xbe
,
0x5d
);
DEFINE_GUID
(
IID_ITextDocument
,
0x8cc497c0
,
0xa1df
,
0x11ce
,
0x80
,
0x98
,
0x00
,
0xaa
,
0x00
,
0x47
,
0xbe
,
0x5d
);
DEFINE_GUID
(
IID_ITextRange
,
0x8cc497c2
,
0xa1df
,
0x11ce
,
0x80
,
0x98
,
0x00
,
0xaa
,
0x00
,
0x47
,
0xbe
,
0x5d
);
DEFINE_GUID
(
IID_ITextSelection
,
0x8cc497c1
,
0xa1df
,
0x11ce
,
0x80
,
0x98
,
0x00
,
0xaa
,
0x00
,
0x47
,
0xbe
,
0x5d
);
static
HMODULE
hmoduleRichEdit
;
static
HMODULE
hmoduleRichEdit
;
...
@@ -57,6 +59,8 @@ START_TEST(richole)
...
@@ -57,6 +59,8 @@ START_TEST(richole)
{
{
IRichEditOle
*
reOle
=
NULL
;
IRichEditOle
*
reOle
=
NULL
;
ITextDocument
*
txtDoc
=
NULL
;
ITextDocument
*
txtDoc
=
NULL
;
ITextSelection
*
txtSel
=
NULL
;
IUnknown
*
punk
;
HRESULT
hres
;
HRESULT
hres
;
LRESULT
res
;
LRESULT
res
;
HWND
w
;
HWND
w
;
...
@@ -81,7 +85,36 @@ START_TEST(richole)
...
@@ -81,7 +85,36 @@ START_TEST(richole)
ok
(
hres
==
S_OK
,
"IRichEditOle_QueryInterface
\n
"
);
ok
(
hres
==
S_OK
,
"IRichEditOle_QueryInterface
\n
"
);
ok
(
txtDoc
!=
NULL
,
"IRichEditOle_QueryInterface
\n
"
);
ok
(
txtDoc
!=
NULL
,
"IRichEditOle_QueryInterface
\n
"
);
hres
=
ITextDocument_GetSelection
(
txtDoc
,
&
txtSel
);
ok
(
hres
==
S_OK
,
"ITextDocument_GetSelection
\n
"
);
ok
(
txtSel
!=
NULL
,
"ITextDocument_GetSelection
\n
"
);
punk
=
NULL
;
hres
=
ITextSelection_QueryInterface
(
txtSel
,
&
IID_ITextSelection
,
(
void
**
)
&
punk
);
ok
(
hres
==
S_OK
,
"ITextSelection_QueryInterface
\n
"
);
ok
(
punk
!=
NULL
,
"ITextSelection_QueryInterface
\n
"
);
IUnknown_Release
(
punk
);
punk
=
NULL
;
hres
=
ITextSelection_QueryInterface
(
txtSel
,
&
IID_ITextRange
,
(
void
**
)
&
punk
);
ok
(
hres
==
S_OK
,
"ITextSelection_QueryInterface
\n
"
);
ok
(
punk
!=
NULL
,
"ITextSelection_QueryInterface
\n
"
);
IUnknown_Release
(
punk
);
punk
=
NULL
;
hres
=
ITextSelection_QueryInterface
(
txtSel
,
&
IID_IDispatch
,
(
void
**
)
&
punk
);
ok
(
hres
==
S_OK
,
"ITextSelection_QueryInterface
\n
"
);
ok
(
punk
!=
NULL
,
"ITextSelection_QueryInterface
\n
"
);
IUnknown_Release
(
punk
);
ITextDocument_Release
(
txtDoc
);
ITextDocument_Release
(
txtDoc
);
IUnknown_Release
(
reOle
);
IUnknown_Release
(
reOle
);
DestroyWindow
(
w
);
DestroyWindow
(
w
);
/* Methods should return CO_E_RELEASED if the backing document has
been released. One test should suffice. */
hres
=
ITextSelection_CanEdit
(
txtSel
,
NULL
);
ok
(
hres
==
CO_E_RELEASED
,
"ITextSelection after ITextDocument destroyed
\n
"
);
ITextSelection_Release
(
txtSel
);
}
}
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