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
9f59c164
Commit
9f59c164
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 window sizes.
parent
4db77333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
oleobject.c
dlls/shdocvw/oleobject.c
+26
-1
No files found.
dlls/shdocvw/oleobject.c
View file @
9f59c164
...
...
@@ -31,8 +31,33 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
static
ATOM
shell_embedding_atom
=
0
;
static
LRESULT
resize_window
(
WebBrowser
*
This
,
LONG
width
,
LONG
height
)
{
if
(
This
->
doc_view_hwnd
)
SetWindowPos
(
This
->
doc_view_hwnd
,
NULL
,
0
,
0
,
width
,
height
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
return
0
;
}
static
LRESULT
WINAPI
shell_embedding_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WebBrowser
*
This
;
static
const
WCHAR
wszTHIS
[]
=
{
'T'
,
'H'
,
'I'
,
'S'
,
0
};
if
(
msg
==
WM_CREATE
)
{
This
=
*
(
WebBrowser
**
)
lParam
;
SetPropW
(
hwnd
,
wszTHIS
,
This
);
}
else
{
This
=
GetPropW
(
hwnd
,
wszTHIS
);
}
switch
(
msg
)
{
case
WM_SIZE
:
return
resize_window
(
This
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
}
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
}
...
...
@@ -477,8 +502,8 @@ static HRESULT WINAPI OleInPlaceObject_SetObjectRects(IOleInPlaceObject *iface,
if
(
This
->
shell_embedding_hwnd
)
{
SetWindowPos
(
This
->
shell_embedding_hwnd
,
NULL
,
lprcPosRect
->
left
,
lprcPosRect
->
top
,
lprcPosRect
->
bottom
-
lprcPosRect
->
top
,
lprcPosRect
->
right
-
lprcPosRect
->
left
,
lprcPosRect
->
bottom
-
lprcPosRect
->
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
...
...
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