🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IHTMLSelectElement put_onchange syntax

#808
From: Remy Lebeau (TeamB)
Date: Wed, 01 Feb 2006 02:04
21 lines
1732 bytes
"Mitch McInelly" <mitch@agencysoftware.com> wrote in message
news:43e00082$1@newsgroups.borland.com...

> onChange="javascript: setPageDataChangeIndicator();
> changeMake(document.all['vehicleYear'].value,this,'vehicleModel') "

The onChange event is accessing the 'this' pointer.  Try passing the
IHTMLSelectElement as a parameter when calling Invoke(), ie:

    if( pEventDisp )
    {
        TVariant Result, Arg = (IDispatch*) (IHTMLSelectElement*) Input;
        DISPID Id = DISPID_THIS;
        DISPPARAMS Params = {&Arg, &Id, 1, 1};
        pEventDisp->Invoke(DISPID_VALUE, IID_NULL, LOCALE_SYSTEM_DEFAULT,
DISPATCH_METHOD, &Params, &Result, NULL, NULL);
    }


Gambit
Technical Details
Message-ID: <43e016aa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43dfa1e5$1@newsgroups.borland.com> <43dfb00a$1@newsgroups.borland.com> <43dfeb33$1@newsgroups.borland.com> <43dff8bc@newsgroups.borland.com> <43e00082$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4307e96a2fc07463
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <43dfa1e5$1@newsgroups.borland.com> <43dfb00a$1@newsgroups.borland.com> <43dfeb33$1@newsgroups.borland.com> <43dff8bc@newsgroups.borland.com> <43e00082$1@newsgroups.borland.com>
Subject: Re: IHTMLSelectElement put_onchange syntax
Date: Tue, 31 Jan 2006 18:04:45 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43e016aa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138759338 68.69.17.41 (31 Jan 2006 18:02:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail