Click here to Skip to main content
15,891,184 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: run exe file from ASP Pin
Paul Watson23-Apr-04 12:51
sitebuilderPaul Watson23-Apr-04 12:51 
GeneralRe: run exe file from ASP Pin
AWebDude25-Apr-04 5:01
AWebDude25-Apr-04 5:01 
Question2 dimensional array??? Pin
doha_8122-Apr-04 17:49
doha_8122-Apr-04 17:49 
AnswerRe: 2 dimensional array??? Pin
Colin Angus Mackay23-Apr-04 8:12
Colin Angus Mackay23-Apr-04 8:12 
GeneralInterDev showing HTML comments in source view Pin
John R. Shaw22-Apr-04 7:56
John R. Shaw22-Apr-04 7:56 
GeneralRe: InterDev showing HTML comments in source view Pin
Paul Watson23-Apr-04 12:56
sitebuilderPaul Watson23-Apr-04 12:56 
GeneralNeed good understaning in the purpose of .lic files Pin
anderslundsgard22-Apr-04 4:12
anderslundsgard22-Apr-04 4:12 
GeneralDISPID_SETSECURELOCKICON event not firing Pin
zero.sg22-Apr-04 2:49
zero.sg22-Apr-04 2:49 
I am writing a tool band object using C++ and Visual Studio.NET 2003. The
toolband object is a regular ATL/C++ dll inproc server project.
Environment: Windows XP Professional SP 1, Visual Studio.NET 2003 installed, IE
6.0 SP1 (all the Windows update patches applied for everything)


The object (CToolBand) is derived from the classes CComObjectRootEx,
CComCoClass, IObjectWitSiteImpl, IDispatchImpl, IInputObject and IDeskBand.

The SetSite method is implemented as follows (excerpts with error handling
stripped out):

STDMETHODIMP CToolBand::SetSite(IUnknown *punkSite)
{
    // punkSite != 0
    m_spSite = pUnkSite;  //  CComPtr<IUnknown> m_spSite is a member of CToolBand

    //    1. get IOleWindow, call GetWindow and attach the (rebar) HWND to an internal window class
    ....

    //    2. get the top level web browser (here it comes...)
    CComPtr<IServiceProvider> spService;
    m_spSite->QueryService(IID_IServiceProvider, (void **)&spService);

    CComPtr<IServiceProvider> spService2;
    spService->QueryService(SID_STopLevelBrowser, IID_IServiceProvider, (void **)&spService2);

    spService2->QueryService(SID_SWebBrowserApp, IID_IWebBrowser2, (void **)&m_spWebBrowser2);
    // m_spWebBrowser2 is member in CToolBand and declared as CComPtr<IWebBrowser2>

    //    3. request advise for DWebBrowserEvents2 events
    CComQIPtr<IConnectionPointContainer> spCPC = m_spWebBrowser2;
    CComPtr<IConnectionPoint> spCP;
    spCPC->FindConnectionPoint(DIID_DWebBrowserEvents2, &spCP);

    spCP->Advise(GetUnknown(), &m_dwCookie);

    //    4. get IInputObjectSite

    //    5. create tool band toolbar window
    //    done
}


The Invoke is also implemented as:

STDMETHODIMP CToolBand::Invoke(...)
{
     if(dispid == DISPID_BEFORENAVIGATE2)
    {
        ATLTRACE(_T("BeforeNavigate2"));
    }
    //    .. other if cases for various DISPIDs


   return E_NOTIMPL;
}


What I cannot understand is that I receive BeforeNavigate2, NavigateComplete, DocumentComplete, Quit, PrivacyImpactedStateChange events (and also the TitleChange, Progress, StatusTextChange, PropertyChange etc.).

But I DO NOT receive the SetSecureLockIcon (DISPID_SETSECURELOCKICON) at all, although I am sure that I tested with a SSL 128bit site.

In my header file this DISPID have the value 269 (ExDispID.h)

In fact, I made a sample VB application with a form hosting a web browser control, and I received the setSecureLockIcon event, so I don't think is something from my browser settings.

I suspect that is something regarding the current implementation of SetSite and/or Advise methods, since this is not a web browser control, but a toolband object hosted in the rebar control.

Maybe I query for the wrong IWebBrowser2 object? I get the application object, but the SetSecureLockIcon event is fired for the browser control and not the browser application?

I feel that I mismatch something.

I can't wait the replies!

Thank you,
Cristian Amarie
GeneralPop Up size Pin
adilreh22-Apr-04 0:09
adilreh22-Apr-04 0:09 
GeneralRe: Pop Up size Pin
Paul Watson23-Apr-04 12:58
sitebuilderPaul Watson23-Apr-04 12:58 
Questionhow to change language in a textbox when focused in clientside Pin
amitmerla21-Apr-04 20:41
amitmerla21-Apr-04 20:41 
AnswerRe: how to change language in a textbox when focused in clientside Pin
Paul Watson23-Apr-04 13:02
sitebuilderPaul Watson23-Apr-04 13:02 
Generalcontent management Pin
douxcopine21-Apr-04 20:13
douxcopine21-Apr-04 20:13 
GeneralRe: content management Pin
Vincent Puglia22-Apr-04 7:38
Vincent Puglia22-Apr-04 7:38 
Generalcapturing Ctrl key Pin
Vladimir Kelman21-Apr-04 8:50
Vladimir Kelman21-Apr-04 8:50 
GeneralResize image after upload with asp or component Pin
AngelofPeace20-Apr-04 22:27
AngelofPeace20-Apr-04 22:27 
GeneralRe: Resize image after upload with asp or component Pin
Colin Angus Mackay21-Apr-04 1:18
Colin Angus Mackay21-Apr-04 1:18 
QuestionCan I get the value of newid() function of SQLserver2k from ASP Pin
_skidrow_vn_20-Apr-04 22:20
_skidrow_vn_20-Apr-04 22:20 
AnswerRe: Can I get the value of newid() function of SQLserver2k from ASP Pin
l a u r e n23-Apr-04 11:25
l a u r e n23-Apr-04 11:25 
Generalaccess to HTMLHelp via intranet Pin
Member 103671620-Apr-04 19:55
Member 103671620-Apr-04 19:55 
GeneralProblem with Isapifilter SendRawData (URGEND) Pin
Stephan Pilz20-Apr-04 2:48
Stephan Pilz20-Apr-04 2:48 
Generalproblem with image "onload"..Pls Help!!! Pin
jithus19-Apr-04 20:33
jithus19-Apr-04 20:33 
GeneralTable Troubles Pin
anonymous1219-Apr-04 17:54
anonymous1219-Apr-04 17:54 
GeneralRe: Table Troubles Pin
Yasen Georgiew20-Apr-04 22:14
Yasen Georgiew20-Apr-04 22:14 
GeneralTransparent background Pin
hkulten19-Apr-04 11:55
hkulten19-Apr-04 11:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.