Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f9a78861
Commit
f9a78861
authored
Feb 06, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Use SetWindowRects to set WebBrowser's size.
parent
8baee578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
webbrowser.c
dlls/hhctrl.ocx/webbrowser.c
+6
-5
No files found.
dlls/hhctrl.ocx/webbrowser.c
View file @
f9a78861
...
...
@@ -580,6 +580,7 @@ static IStorage MyIStorage = { &MyIStorageTable };
BOOL
WB_EmbedBrowser
(
WBInfo
*
pWBInfo
,
HWND
hwndParent
)
{
IOleClientSiteImpl
*
iOleClientSiteImpl
;
IOleInPlaceObject
*
inplace
;
IOleObject
*
browserObject
;
IWebBrowser2
*
webBrowser2
;
HRESULT
hr
;
...
...
@@ -622,16 +623,16 @@ BOOL WB_EmbedBrowser(WBInfo *pWBInfo, HWND hwndParent)
-
1
,
hwndParent
,
&
rc
);
if
(
FAILED
(
hr
))
goto
error
;
hr
=
IOleObject_QueryInterface
(
browserObject
,
&
IID_IOleInPlaceObject
,
(
void
**
)
&
inplace
);
if
(
FAILED
(
hr
))
goto
error
;
IOleInPlaceObject_SetObjectRects
(
inplace
,
&
rc
,
&
rc
);
IOleInPlaceObject_Release
(
inplace
);
hr
=
IOleObject_QueryInterface
(
browserObject
,
&
IID_IWebBrowser2
,
(
void
**
)
&
webBrowser2
);
if
(
SUCCEEDED
(
hr
))
{
IWebBrowser2_put_Left
(
webBrowser2
,
0
);
IWebBrowser2_put_Top
(
webBrowser2
,
0
);
IWebBrowser2_put_Width
(
webBrowser2
,
rc
.
right
);
IWebBrowser2_put_Height
(
webBrowser2
,
rc
.
bottom
);
pWBInfo
->
pWebBrowser2
=
webBrowser2
;
pWBInfo
->
hwndParent
=
hwndParent
;
...
...
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