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
946acd06
Commit
946acd06
authored
Jun 22, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Activate nsWebBrowser after creating document window.
parent
9f8b92c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
view.c
dlls/mshtml/view.c
+12
-10
No files found.
dlls/mshtml/view.c
View file @
946acd06
...
...
@@ -84,16 +84,16 @@ static void paint_document(HTMLDocument *This)
EndPaint
(
This
->
hwnd
,
&
ps
);
}
static
void
activate_gecko
(
HTMLDocument
*
This
)
static
void
activate_gecko
(
NSContainer
*
This
)
{
TRACE
(
"(%p) %p
\n
"
,
This
,
This
->
nscontainer
->
window
);
TRACE
(
"(%p) %p
\n
"
,
This
,
This
->
window
);
SetParent
(
This
->
nscontainer
->
hwnd
,
This
->
hwnd
);
ShowWindow
(
This
->
nscontainer
->
hwnd
,
SW_SHOW
);
SetParent
(
This
->
hwnd
,
This
->
doc
->
hwnd
);
ShowWindow
(
This
->
hwnd
,
SW_SHOW
);
nsIBaseWindow_SetVisibility
(
This
->
nscontainer
->
window
,
TRUE
);
nsIBaseWindow_SetEnabled
(
This
->
nscontainer
->
window
,
TRUE
);
nsIWebBrowserFocus_Activate
(
This
->
nscontainer
->
focus
);
nsIBaseWindow_SetVisibility
(
This
->
window
,
TRUE
);
nsIBaseWindow_SetEnabled
(
This
->
window
,
TRUE
);
nsIWebBrowserFocus_Activate
(
This
->
focus
);
}
void
update_doc
(
HTMLDocument
*
This
,
DWORD
flags
)
...
...
@@ -180,8 +180,6 @@ static LRESULT WINAPI serverwnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
switch
(
msg
)
{
case
WM_CREATE
:
This
->
hwnd
=
hwnd
;
if
(
This
->
nscontainer
)
activate_gecko
(
This
);
break
;
case
WM_PAINT
:
paint_document
(
This
);
...
...
@@ -242,7 +240,8 @@ static HRESULT activate_window(HTMLDocument *This)
return
FAILED
(
hres
)
?
hres
:
E_FAIL
;
}
hres
=
IOleInPlaceSite_GetWindowContext
(
This
->
ipsite
,
&
pIPFrame
,
&
pIPWnd
,
&
posrect
,
&
cliprect
,
&
frameinfo
);
hres
=
IOleInPlaceSite_GetWindowContext
(
This
->
ipsite
,
&
pIPFrame
,
&
pIPWnd
,
&
posrect
,
&
cliprect
,
&
frameinfo
);
if
(
FAILED
(
hres
))
{
WARN
(
"GetWindowContext failed: %08x
\n
"
,
hres
);
return
hres
;
...
...
@@ -289,6 +288,9 @@ static HRESULT activate_window(HTMLDocument *This)
SetTimer
(
This
->
hwnd
,
TIMER_ID
,
100
,
NULL
);
}
if
(
This
->
nscontainer
)
activate_gecko
(
This
->
nscontainer
);
This
->
in_place_active
=
TRUE
;
hres
=
IOleInPlaceSite_QueryInterface
(
This
->
ipsite
,
&
IID_IOleInPlaceSiteEx
,
(
void
**
)
&
ipsiteex
);
if
(
SUCCEEDED
(
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