Re: How I can show the scrollbar as needed?



Hi, Igor. Thanks. :) Your advice are really helpful!

One (ok, actually two) more question:

1) In some cases, IE opens pop-up windows which are without address
bar and scrollbars. For example, running the following script will
generate one:

---------------------------------------------------------------------------------------------------------------------
window.open('dest.htm', '', 'height=300,width=400,left=500,top=200',
false);
---------------------------------------------------------------------------------------------------------------------

With the WebBrowser control in my application, I get an NewWindow3
notification when running the above script.

The dwFlags is 0x00040006, that is, NWMF_SUGGESTWINDOW | NWMF_FIRST |
NWMF_USERINITED.

I want to create an appropriate window (with or without address bar,
just like IE) in my application for this event. However, I think we
cannot judge from the flag that this new window is a pop-up window
without address & scrollbars, or it is a normal window.

Is there any other information that I can use to make this
judgment? :) What has IE done to make the decision?

2) (Still using the scenario above: run the window.open(...) script in
my WebBrowser control and get a NewWindow3 notification)
I notice that if I create a new WebBrowser control, and pass it back
in the NewWindow3's IDispatch** parameter, this WebBrowser will have
no scrollbars (even after I ask it to navigate to another location.)

How does this happen? Does the parent WebBrowser control implements
the IDocHostUIHandler::GetHostInfo() interface and set
DOCHOSTUIFLAG_SCROLL_NO?
How can I enable its scrollbars again?

Thanks very much!

.



Relevant Pages

  • Re: How to catch web page script "moveto()" in CHtmlView?
    ... > It's the window of WebBrowser control. ... >> the chtmlview still got scrollbars. ... > the size WebBrowser control wants to have, not how to change it to what ... it resizes the WebBrowser control to completely cover the ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Webbrowser control looses sessionid on "newwindow"
    ... begin navigation and that the following onclick event which uses javascript ... I just did a test with your test page in my own shdocvw browser. ... If the new_window event is cancelled, ... instance of the webbrowser control), ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: How to catch web page script "moveto()" in CHtmlView?
    ... It's the window of WebBrowser control. ... > the chtmlview still got scrollbars. ... it resizes the WebBrowser control to completely cover the ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Webbrowser control looses sessionid on "newwindow"
    ... I haven't gone to the trouble of creating a beresque browser to test your ... webbrowser control this will open a new instance of Internet Explorer on the ... contrains info and this window has the "Server Error" page. ... Navigate to that page and click the link. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Connecting to a running instance of an embedded webBrowser con
    ... Open Spy++ if you have it, and get the classname for the window you are after (the browser itself) ... There are Win32 functions that allow code to access other processes, the main window, child windows, etc.. ... className should be that of the WebBrowser control, and windowName can be specified as null. ...
    (microsoft.public.dotnet.languages.csharp)