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
84f0597d
Commit
84f0597d
authored
Dec 02, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync the WebBrowser's window size with document's window.
parent
5cbd312b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
dochost.c
dlls/shdocvw/dochost.c
+14
-1
No files found.
dlls/shdocvw/dochost.c
View file @
84f0597d
...
...
@@ -88,6 +88,18 @@ static LRESULT navigate2(WebBrowser *This)
return
0
;
}
static
LRESULT
resize_document
(
WebBrowser
*
This
,
LONG
width
,
LONG
height
)
{
RECT
rect
=
{
0
,
0
,
width
,
height
};
TRACE
(
"(%p)->(%ld %ld)
\n
"
,
This
,
width
,
height
);
if
(
This
->
view
)
IOleDocumentView_SetRect
(
This
->
view
,
&
rect
);
return
0
;
}
static
LRESULT
WINAPI
doc_view_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WebBrowser
*
This
;
...
...
@@ -96,13 +108,14 @@ static LRESULT WINAPI doc_view_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
if
(
msg
==
WM_CREATE
)
{
This
=
*
(
WebBrowser
**
)
lParam
;
ERR
(
"create %p
\n
"
,
This
);
SetPropW
(
hwnd
,
wszTHIS
,
This
);
}
else
{
This
=
GetPropW
(
hwnd
,
wszTHIS
);
}
switch
(
msg
)
{
case
WM_SIZE
:
return
resize_document
(
This
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
case
WB_WM_NAVIGATE2
:
return
navigate2
(
This
);
}
...
...
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