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
19be7d62
Commit
19be7d62
authored
Jun 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for DOCHOSTUIFLAG_SCROLL_NO DOCHOSTINFO flag.
parent
f58b963f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
oleobj.c
dlls/mshtml/oleobj.c
+27
-0
No files found.
dlls/mshtml/oleobj.c
View file @
19be7d62
...
...
@@ -61,6 +61,32 @@ static ULONG WINAPI OleObject_Release(IOleObject *iface)
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
));
}
static
void
update_hostinfo
(
HTMLDocument
*
This
,
DOCHOSTUIINFO
*
hostinfo
)
{
nsIScrollable
*
scrollable
;
nsresult
nsres
;
if
(
!
This
->
nscontainer
)
return
;
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
nscontainer
->
webbrowser
,
&
IID_nsIScrollable
,
(
void
**
)
&
scrollable
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsres
=
nsIScrollable_SetDefaultScrollbarPreferences
(
scrollable
,
ScrollOrientation_Y
,
(
hostinfo
->
dwFlags
&
DOCHOSTUIFLAG_SCROLL_NO
)
?
Scrollbar_Never
:
Scrollbar_Always
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Could not set default Y scrollbar prefs: %08x
\n
"
,
nsres
);
nsres
=
nsIScrollable_SetDefaultScrollbarPreferences
(
scrollable
,
ScrollOrientation_X
,
hostinfo
->
dwFlags
&
DOCHOSTUIFLAG_SCROLL_NO
?
Scrollbar_Never
:
Scrollbar_Auto
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Could not set default X scrollbar prefs: %08x
\n
"
,
nsres
);
nsIScrollable_Release
(
scrollable
);
}
else
{
ERR
(
"Could not get nsIScrollable: %08x
\n
"
,
nsres
);
}
}
static
HRESULT
WINAPI
OleObject_SetClientSite
(
IOleObject
*
iface
,
IOleClientSite
*
pClientSite
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
...
...
@@ -103,6 +129,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
TRACE
(
"hostinfo = {%u %08x %08x %s %s}
\n
"
,
hostinfo
.
cbSize
,
hostinfo
.
dwFlags
,
hostinfo
.
dwDoubleClick
,
debugstr_w
(
hostinfo
.
pchHostCss
),
debugstr_w
(
hostinfo
.
pchHostNS
));
update_hostinfo
(
This
,
&
hostinfo
);
This
->
hostinfo
=
hostinfo
;
}
...
...
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