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
f48fa4b9
Commit
f48fa4b9
authored
Jan 07, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added InternetExplorer::get_Visible implementation.
parent
74ccbf00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
ie.c
dlls/shdocvw/ie.c
+5
-2
ie.c
dlls/shdocvw/tests/ie.c
+24
-0
No files found.
dlls/shdocvw/ie.c
View file @
f48fa4b9
...
...
@@ -372,8 +372,11 @@ static HRESULT WINAPI InternetExplorer_get_Path(IWebBrowser2 *iface, BSTR *Path)
static
HRESULT
WINAPI
InternetExplorer_get_Visible
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
*
pBool
)
{
InternetExplorer
*
This
=
impl_from_IWebBrowser2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pBool
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pBool
);
*
pBool
=
IsWindowVisible
(
This
->
frame_hwnd
)
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
InternetExplorer_put_Visible
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
Value
)
...
...
dlls/shdocvw/tests/ie.c
View file @
f48fa4b9
...
...
@@ -27,6 +27,28 @@
#include "ole2.h"
#include "exdisp.h"
static
void
test_visible
(
IWebBrowser2
*
wb
)
{
VARIANT_BOOL
b
;
HRESULT
hres
;
b
=
0x100
;
hres
=
IWebBrowser2_get_Visible
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_Visible failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_FALSE
,
"Visible = %x
\n
"
,
hres
);
hres
=
IWebBrowser2_put_Visible
(
wb
,
VARIANT_TRUE
);
ok
(
hres
==
S_OK
,
"put_Visible failed: %08x
\n
"
,
hres
);
b
=
0x100
;
hres
=
IWebBrowser2_get_Visible
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_Visible failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_TRUE
,
"Visible = %x
\n
"
,
hres
);
hres
=
IWebBrowser2_put_Visible
(
wb
,
VARIANT_FALSE
);
ok
(
hres
==
S_OK
,
"put_Visible failed: %08x
\n
"
,
hres
);
}
static
void
test_InternetExplorer
(
void
)
{
IWebBrowser2
*
wb
;
...
...
@@ -44,6 +66,8 @@ static void test_InternetExplorer(void)
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
ok
(
hres
==
S_OK
,
"Could not get IWebBrowser2 interface: %08x
\n
"
,
hres
);
test_visible
(
wb
);
IWebBrowser2_Release
(
wb
);
ref
=
IUnknown_Release
(
unk
);
ok
(
!
ref
,
"object not destroyed, ref=%u
\n
"
,
ref
);
...
...
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