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
081d50d2
Commit
081d50d2
authored
Jul 08, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added OnFrameWindowActivate implementation.
parent
0542e835
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
5 deletions
+63
-5
olewnd.c
dlls/mshtml/olewnd.c
+9
-3
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+54
-2
No files found.
dlls/mshtml/olewnd.c
View file @
081d50d2
...
...
@@ -91,11 +91,17 @@ static HRESULT WINAPI OleInPlaceActiveObject_TranslateAccelerator(IOleInPlaceAct
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleInPlaceActiveObject_OnFrameWindowActivate
(
IOleInPlaceActiveObject
*
iface
,
BOOL
fActivate
)
static
HRESULT
WINAPI
OleInPlaceActiveObject_OnFrameWindowActivate
(
IOleInPlaceActiveObject
*
iface
,
BOOL
fActivate
)
{
HTMLDocument
*
This
=
ACTOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
fActivate
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
fActivate
);
if
(
This
->
hostui
)
IDocHostUIHandler_OnFrameWindowActivate
(
This
->
hostui
,
fActivate
);
return
S_OK
;
}
static
HRESULT
WINAPI
OleInPlaceActiveObject_OnDocWindowActivate
(
IOleInPlaceActiveObject
*
iface
,
BOOL
fActivate
)
...
...
dlls/mshtml/tests/htmldoc.c
View file @
081d50d2
...
...
@@ -101,6 +101,7 @@ DEFINE_EXPECT(Invoke_AMBIENT_PALETTE);
DEFINE_EXPECT
(
GetDropTarget
);
DEFINE_EXPECT
(
UpdateUI
);
DEFINE_EXPECT
(
Navigate
);
DEFINE_EXPECT
(
OnFrameWindowActivate
);
static
BOOL
expect_LockContainer_fLock
;
static
BOOL
expect_SetActiveObject_active
;
...
...
@@ -832,10 +833,12 @@ static HRESULT WINAPI DocHostUIHandler_OnDocWindowActivate(IDocHostUIHandler2 *i
return
E_NOTIMPL
;
}
static
BOOL
expect_OnFrameWindowActivate_fActivate
;
static
HRESULT
WINAPI
DocHostUIHandler_OnFrameWindowActivate
(
IDocHostUIHandler2
*
iface
,
BOOL
fActivate
)
{
ok
(
0
,
"unexpected call
\n
"
);
return
E_NOTIMPL
;
CHECK_EXPECT2
(
OnFrameWindowActivate
);
ok
(
fActivate
==
expect_OnFrameWindowActivate_fActivate
,
"fActivate=%x
\n
"
,
fActivate
);
return
S_OK
;
}
static
HRESULT
WINAPI
DocHostUIHandler_ResizeBorder
(
IDocHostUIHandler2
*
iface
,
LPCRECT
prcBorder
,
...
...
@@ -1808,6 +1811,50 @@ static void test_Close(IUnknown *unk, BOOL set_client)
IOleObject_Release
(
oleobj
);
}
static
void
test_OnFrameWindowActivate
(
IUnknown
*
unk
)
{
IOleInPlaceActiveObject
*
inplaceact
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IOleInPlaceActiveObject
,
(
void
**
)
&
inplaceact
);
ok
(
hres
==
S_OK
,
"QueryInterface(IID_IOleInPlaceActiveObject) failed: %08lx
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
if
(
set_clientsite
)
{
expect_OnFrameWindowActivate_fActivate
=
TRUE
;
SET_EXPECT
(
OnFrameWindowActivate
);
hres
=
IOleInPlaceActiveObject_OnFrameWindowActivate
(
inplaceact
,
TRUE
);
ok
(
hres
==
S_OK
,
"OnFrameWindowActivate failed: %08lx
\n
"
,
hres
);
CHECK_CALLED
(
OnFrameWindowActivate
);
SET_EXPECT
(
OnFrameWindowActivate
);
hres
=
IOleInPlaceActiveObject_OnFrameWindowActivate
(
inplaceact
,
TRUE
);
ok
(
hres
==
S_OK
,
"OnFrameWindowActivate failed: %08lx
\n
"
,
hres
);
CHECK_CALLED
(
OnFrameWindowActivate
);
expect_OnFrameWindowActivate_fActivate
=
FALSE
;
SET_EXPECT
(
OnFrameWindowActivate
);
hres
=
IOleInPlaceActiveObject_OnFrameWindowActivate
(
inplaceact
,
FALSE
);
ok
(
hres
==
S_OK
,
"OnFrameWindowActivate failed: %08lx
\n
"
,
hres
);
CHECK_CALLED
(
OnFrameWindowActivate
);
expect_OnFrameWindowActivate_fActivate
=
TRUE
;
SET_EXPECT
(
OnFrameWindowActivate
);
hres
=
IOleInPlaceActiveObject_OnFrameWindowActivate
(
inplaceact
,
TRUE
);
ok
(
hres
==
S_OK
,
"OnFrameWindowActivate failed: %08lx
\n
"
,
hres
);
CHECK_CALLED
(
OnFrameWindowActivate
);
}
else
{
hres
=
IOleInPlaceActiveObject_OnFrameWindowActivate
(
inplaceact
,
FALSE
);
ok
(
hres
==
S_OK
,
"OnFrameWindowActivate failed: %08lx
\n
"
,
hres
);
hres
=
IOleInPlaceActiveObject_OnFrameWindowActivate
(
inplaceact
,
TRUE
);
ok
(
hres
==
S_OK
,
"OnFrameWindowActivate failed: %08lx
\n
"
,
hres
);
}
IOleInPlaceActiveObject_Release
(
inplaceact
);
}
static
void
test_InPlaceDeactivate
(
IUnknown
*
unk
,
BOOL
expect_call
)
{
IOleInPlaceObjectWindowless
*
windowlessobj
=
NULL
;
...
...
@@ -1851,12 +1898,17 @@ static HRESULT test_Activate(IUnknown *unk, DWORD flags)
ok
(
hres
==
S_OK
,
"GetUserClassID failed: %08lx
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
guid
,
&
CLSID_HTMLDocument
),
"guid != CLSID_HTMLDocument
\n
"
);
test_OnFrameWindowActivate
(
unk
);
test_ClientSite
(
oleobj
,
flags
);
test_InPlaceDeactivate
(
unk
,
FALSE
);
hres
=
test_DoVerb
(
oleobj
);
IOleObject_Release
(
oleobj
);
test_OnFrameWindowActivate
(
unk
);
return
hres
;
}
...
...
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