🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1312

Re: I successed webbrowser coustomization partly.. plz help more..

#1312
From: jini
Date: Mon, 21 Mar 2005 15:31
62 lines
3266 bytes
Thanks Remy for your kindness..

In spite of youre advise I failed to solve my problems.
I am not good at english. so i did not understand your replies perfectly.

Would you mind make simple example code for me.
I think, I can understand your replies, if i could see example code.

I want to customize webbrowser control, never showmessage never popup right
click menu and
never download exe, zip.. etc files.

Thanks.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:4239c9a1$1@newsgroups.borland.com...
>
> "jini" <fseconds@hotmail.com> wrote in message
> news:4239501e$1@newsgroups.borland.com...
>
> >     (4) class myIDispatch :public IDispatch // <--- NOT WORK!!!!
>
> Why are you implementing IDispatch from scratch?  At the very least, you
> should use the existing IDispatchImpl class to simplify the work.
>
> >             if (iid == IID_IUnknown) *ppvObject = this->pmyIDispatch;
>
> That is not the correct thing to do.  You need to return a pointer to the
> class that is being queried:
>
>     if( iid == IID_IUnknown ) *ppvObject = (IUnknown*)this;
>
> >             else if (iid == IID_IOleClientSite) *ppvObject =
> > (IOleClientSite*)this;
> >             else if (iid == IID_IDocHostUIHandler) *ppvObject =
> > this->pmyIDocHostUIHandler;
> >             else if (iid == IID_IDocHostShowUI) *ppvObject =
> > this->pmyIDocHostShowUI;
>
> I would suggest implementing all of the interfaces in the same class, not
> separate classes.  This you can return 'this' for all of them.
>
> >             ShowMessage(dispidMember); // <--  it display just two
> > messages -5501, -5502
>
> -5501 = DISPID_AMBIENT_OFFLINEIFNOTCONNECTED
>
> -5502 = DISPID_AMBIENT_SILENT
>
> >                 case DISPID_NEWWINDOW2:
> >                 case DISPID_BEFORENAVIGATE2:
>
> To receive those events, you need to attach to the browser's
> DWebBrowserEvents2 ConnectionPoint.  Query the IWebBrowser2 interface for
> IConnectionPointContainer, retreive the IConnectionPoint for
> DIID_DWebBrowserEvents2, and add your IDispatch by calling
> IConnectionPoint::Advise().
>
>
> Gambit
>
>
Technical Details
Message-ID: <423ee89d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <422d9caa@newsgroups.borland.com> <422de978@newsgroups.borland.com> <422fc828$1@newsgroups.borland.com> <42307cb7$3@newsgroups.borland.com> <4239501e$1@newsgroups.borland.com> <4239c9a1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2e915bcaf988658
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "jini" <fseconds@hotmail.com>
From: "jini" <fseconds@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <422d9caa@newsgroups.borland.com> <422de978@newsgroups.borland.com> <422fc828$1@newsgroups.borland.com> <42307cb7$3@newsgroups.borland.com> <4239501e$1@newsgroups.borland.com> <4239c9a1$1@newsgroups.borland.com>
Subject: Re: I successed webbrowser coustomization partly.. plz help more..
Date: Tue, 22 Mar 2005 00:31:14 +0900
Lines: 64
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 218.51.152.106
Message-ID: <423ee89d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111419037 218.51.152.106 (21 Mar 2005 07:30:37 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail