Re: Help:IWebBrowser2 / DISPID_NEWWINDOW2 /Child window hangs



Hi All,

I just found out that when a new browser window is created in
DISPID_NEWWINDOWS2 and Java script disables the parent IE window which
in turn doesn't allow any window from any process to come on top of it
, and the newly created window is also not aceepting any events like
mouse click.

But if some how i enable the parent IE window everything starts working
fine ..... Any Idea guys !!!!!

arshad wrote:
> Hi Everybody,
>
> Help me with your experience.My problem is as follows
>
> -I create a browser control which is embedded in a simple window with
a
> title bar.
>
> -I create another IWebBroswer2 object when I get DISPID_NEWWINDOW2
> event and return the new IWebBrowser2 object.
>
> Problem:
>
> When a new window is created in DISPID_NEWWINDOW2 and the control
> browse to the URL , it disables the parent control window.I cannot do
> anything on the parent window.This is perfectly fine.But I can't
either
> do anything even on the newly created browser control, no mouse
related
> activity.I am not sure whats the problem.Though TAB and other
keyboard
> events are working fine.This is because the my main message loop is
> calling IOleInPlaceActiveObject::TranslateAccelerator for the new
> browser window.
>
> When I right click on the browser window in the task bar the new
> control window start working i.e i can now work with mouse on the new
> created window.
>
> The page that I am browsing to is a .jspx page !!!!!
>
> Please help me out !!!!!
>
> Igor and Mike I am waiting for your response since I see that you two
> guys help almost everyone.
>
> Arshad

.



Relevant Pages

  • Re: MFC and c++ problems
    ... the interface is defined by the control. ... Note that the messages of CButton are defined by the CButton ... I would think the parent would define which messages the child could send ... window didn't define the message itself, and you didn't design the classes ...
    (microsoft.public.vc.mfc)
  • Re: MD7 Qs
    ... A Parent helps a lot ... ... >> Descendents of TComponent all have an Owner property. ... >> keep close tabs on every control you create. ... >> allocating itself a window handle, there will be problems since the OS ...
    (comp.lang.pascal.delphi.misc)
  • Re: ParkingWindow revisited
    ... Add an owner draw control and a button to the user control. ... components where InitializeComponent is setting certain properties of child ... owner draw controls which cause the child window handle to be created.) ... If a child control window handle is created without a parent (i.e. before ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Threaded UI
    ... display as a modal window to the thread's parent GUI app. ... call of this function to the UI thread using the Invoke method of any ... form or control, has thread affinity requirements. ...
    (microsoft.public.dotnet.general)
  • Re: generic message handler
    ... The parent is always known. ... The parent is the window that contains the control, ... the configuration file at all). ...
    (microsoft.public.vc.mfc)