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
92841b31
Commit
92841b31
authored
May 20, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
May 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Added InternetExplore::get_HWND implementation.
parent
1687c5cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
ie.c
dlls/ieframe/ie.c
+5
-2
ie.c
dlls/ieframe/tests/ie.c
+17
-0
No files found.
dlls/ieframe/ie.c
View file @
92841b31
...
@@ -358,8 +358,11 @@ static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
...
@@ -358,8 +358,11 @@ static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
static
HRESULT
WINAPI
InternetExplorer_get_HWND
(
IWebBrowser2
*
iface
,
SHANDLE_PTR
*
pHWND
)
static
HRESULT
WINAPI
InternetExplorer_get_HWND
(
IWebBrowser2
*
iface
,
SHANDLE_PTR
*
pHWND
)
{
{
InternetExplorer
*
This
=
impl_from_IWebBrowser2
(
iface
);
InternetExplorer
*
This
=
impl_from_IWebBrowser2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pHWND
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pHWND
);
*
pHWND
=
(
SHANDLE_PTR
)
This
->
frame_hwnd
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
InternetExplorer_get_FullName
(
IWebBrowser2
*
iface
,
BSTR
*
FullName
)
static
HRESULT
WINAPI
InternetExplorer_get_FullName
(
IWebBrowser2
*
iface
,
BSTR
*
FullName
)
...
...
dlls/ieframe/tests/ie.c
View file @
92841b31
...
@@ -205,6 +205,22 @@ static void test_html_window(IWebBrowser2 *wb)
...
@@ -205,6 +205,22 @@ static void test_html_window(IWebBrowser2 *wb)
IHTMLWindow2_Release
(
html_window
);
IHTMLWindow2_Release
(
html_window
);
}
}
static
void
test_window
(
IWebBrowser2
*
wb
)
{
SHANDLE_PTR
handle
=
0
;
HWND
hwnd
=
NULL
;
char
buf
[
100
];
HRESULT
hres
;
hres
=
IWebBrowser2_get_HWND
(
wb
,
&
handle
);
ok
(
hres
==
S_OK
,
"get_HWND faile: %08x
\n
"
,
hres
);
ok
(
handle
,
"handle == 0
\n
"
);
hwnd
=
(
HWND
)
handle
;
GetClassNameA
(
hwnd
,
buf
,
sizeof
(
buf
));
ok
(
!
strcmp
(
buf
,
"IEFrame"
),
"Unexpected class name %s
\n
"
,
buf
);
}
static
void
test_navigate
(
IWebBrowser2
*
wb
,
const
char
*
url
)
static
void
test_navigate
(
IWebBrowser2
*
wb
,
const
char
*
url
)
{
{
VARIANT
urlv
,
emptyv
;
VARIANT
urlv
,
emptyv
;
...
@@ -249,6 +265,7 @@ static void test_InternetExplorer(void)
...
@@ -249,6 +265,7 @@ static void test_InternetExplorer(void)
test_visible
(
wb
);
test_visible
(
wb
);
test_html_window
(
wb
);
test_html_window
(
wb
);
test_window
(
wb
);
test_navigate
(
wb
,
"http://test.winehq.org/tests/hello.html"
);
test_navigate
(
wb
,
"http://test.winehq.org/tests/hello.html"
);
advise_cp
(
unk
,
FALSE
);
advise_cp
(
unk
,
FALSE
);
...
...
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