Re: Scrollbars in Webbrowser Control



"Ivan Debono" <ivanmdeb@xxxxxxxxxxx> wrote in message
news:uposGgmcGHA.5048@xxxxxxxxxxxxxxxxxxxx
I've got pages that are longer than the control itself and I would
expect a scrollbar to be displayed. But it's not!! Is there a
property I have set ?

You could have implemented IDocHostUIHandler and returned
DOCHOSTUIFLAG_SCROLL_NO flag from GetHostInfo. That's not something one
can do by accident without realizing it though.

Are you using ATL, by any chance? In ATL, use ModifyStyle to add
WS_HSCROLL | WS_VSCROLL styles to the hosting window right after
creation. The hosting window checks these styles to decide whether to
set DOCHOSTUIFLAG_SCROLL_NO on the hosted control.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Scrollbars in Webbrowser Control
    ... expect a scrollbar to be displayed. ... Are you using ATL, by any chance? ... In ATL, use ModifyStyle to add ... WS_HSCROLL | WS_VSCROLL styles to the hosting window right after creation. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Scrollbars in Webbrowser Control
    ... forgive me but it's in a VB6 project!! ... expect a scrollbar to be displayed. ... Are you using ATL, by any chance? ... WS_HSCROLL | WS_VSCROLL styles to the hosting window right after creation. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: How can I handle WebBrowser control events with C++?
    ... Webbrowser control, I used some of the ATL classes, such as AxWindow. ... IDocHostUIHandler is easy - you ... interface - why ATL authors decided to create a new interface is beyond ... Implementing IDocHostShowUI is difficult with ATL hosting. ...
    (microsoft.public.win32.programmer.ole)