🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11346

Re: Remy please help...BHO question...again

#11346
From: Martin C
Date: Fri, 13 Feb 2004 18:08
47 lines
2658 bytes
Thank you so much Remy for your reply and the code...

BR


"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:402c4b6a$1@newsgroups.borland.com...
>
>
>     case DISPID_BEFORENAVIGATE2:
>     {
>         CComQIPtr<IWebBrowser2, &IID_IWebBrowser2> m_spWebBrowser2Tmp;
>         m_spWebBrowser2Tmp = pDispParams->rgvarg[6].pdispVal;
>
>         WideString wURLToCheck =
> (WideString)TVariant(pDispParams->rgvarg[5].pvarVal);
>         if( wURLToCheck is blocked )
>        {
>             *(pDispParams->rgvarg[0].pboolVal) = VARIANT_TRUE;
>
>             WideString wCurrentURL;
>             m_spWebBrowser2Tmp->get_LocationURL(&wCurrentURL);
>
>             // if there is no current url yet then it must
>             // be a new window so close it as well
>
>             if( wCurrentURL.Length() == 0 )
>             {
>                 // destroy the containing window manually otherwise
>                 // an empty taskbar button may be left behind
>                 long lWindow = NULL;
>                 m_spWebBrowser2Tmp->get_HWND(&lWindow);
>                 if( lWindow != 0 )
>                     DestroyWindow(reinterpret_cast<HWND>(lWindow));
>
>                 // shutdown the browser control
>                 m_spWebBrowser2Tmp->Quit();
>             }
>         }
>
>         break;
>     }
>
>
> Gambit
>
>
Technical Details
Message-ID: <402d756d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator4-cogent.newsfeed.com!propagator2-sterling!in.nntp.be!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <402c0c73$1@newsgroups.borland.com> <402c1587$1@newsgroups.borland.com> <402c193c@newsgroups.borland.com> <402c26b0$1@newsgroups.borland.com> <402c33b0@newsgroups.borland.com> <402c3691$1@newsgroups.borland.com> <402c3c42$1@newsgroups.borland.com> <402c41a3@newsgroups.borland.com> <402c4b6a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d7cd5f398672172c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-13 17:11:59 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <402c0c73$1@newsgroups.borland.com> <402c1587$1@newsgroups.borland.com> <402c193c@newsgroups.borland.com> <402c26b0$1@newsgroups.borland.com> <402c33b0@newsgroups.borland.com> <402c3691$1@newsgroups.borland.com> <402c3c42$1@newsgroups.borland.com> <402c41a3@newsgroups.borland.com> <402c4b6a$1@newsgroups.borland.com>
Subject: Re: Remy please help...BHO question...again
Date: Fri, 13 Feb 2004 20:08:36 +0200
Lines: 49
Organization: V Safe
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.10.4.238
Message-ID: <402d756d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076721005 81.10.4.238 (13 Feb 2004 17:10:05 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator4-cogent.newsfeed.com!propagator2-sterling!in.nntp.be!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail