Re: How I can show the scrollbar as needed?
- From: "yuzhu.shen" <yuzhu.shen@xxxxxxxxx>
- Date: Thu, 17 Apr 2008 09:25:28 -0700 (PDT)
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!
.
- Follow-Ups:
- Re: How I can show the scrollbar as needed?
- From: Igor Tandetnik
- Re: How I can show the scrollbar as needed?
- References:
- How I can show the scrollbar as needed?
- From: yuzhu.shen
- Re: How I can show the scrollbar as needed?
- From: Igor Tandetnik
- How I can show the scrollbar as needed?
- Prev by Date: Re: How I can show the scrollbar as needed?
- Next by Date: Re: How I can show the scrollbar as needed?
- Previous by thread: Re: How I can show the scrollbar as needed?
- Next by thread: Re: How I can show the scrollbar as needed?
- Index(es):
Relevant Pages
|
|