Article View: borland.public.cppbuilder.internet.web
Article #806Re: IHTMLSelectElement put_onchange syntax
From: Mitch McInelly
Date: Wed, 01 Feb 2006 00:25
Date: Wed, 01 Feb 2006 00:25
316 lines
12328 bytes
12328 bytes
Wow! Did you just type all of that in?
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:43dffc47$1@newsgroups.borland.com...
>
> "Mitch McInelly" <mitch@agencysoftware.com> wrote in message
> news:43dfedf0$1@newsgroups.borland.com...
>
>> Am I missing a header or something?
>
> No, simply an outdated PSDK. IHTMLDocument4 and IHTMLElement3 do not
> exist
> in BCB v6 or earlier. They were created after BCB 6 was released. You
> will
> have to define them manually (or upgrade to BDS 2006), ie:
>
> --- MissingInterfaces.h ---
>
> #ifndef MissingInterfacesH
> #define MissingInterfacesH
>
> #include <mshtml.h>
>
> #ifndef __IHTMLElement3_FWD_DEFINED__
> #define __IHTMLElement3_FWD_DEFINED__
> typedef interface IHTMLElement3 IHTMLElement3;
> #endif /* __IHTMLElement3_FWD_DEFINED__ */
>
> #ifndef __IHTMLDocument4_FWD_DEFINED__
> #define __IHTMLDocument4_FWD_DEFINED__
> typedef interface IHTMLDocument4 IHTMLDocument4;
> #endif /* __IHTMLDocument4_FWD_DEFINED__ */
>
>
> #ifndef __IHTMLElement3_INTERFACE_DEFINED__
> #define __IHTMLElement3_INTERFACE_DEFINED__
>
> /* interface IHTMLElement3 */
> /* [object][uuid][dual][oleautomation] */
>
>
> EXTERN_C const IID IID_IHTMLElement3;
>
>
> MIDL_INTERFACE("3050f673-98b5-11cf-bb82-00aa00bdce0b")
> IHTMLElement3 : public IDispatch
> {
> public:
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE mergeAttributes(
> /* [in] */ IHTMLElement *mergeThis,
> /* [in][optional] */ VARIANT *pvarFlags) = 0;
>
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE
> get_isMultiLine(
> /* [out][retval] */ VARIANT_BOOL *p) = 0;
>
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE
> get_canHaveHTML(
> /* [out][retval] */ VARIANT_BOOL *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onlayoutcomplete(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onlayoutcomplete(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onpage(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onpage(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [nonbrowsable][restricted][hidden][id][propput] */
> HRESULT STDMETHODCALLTYPE put_inflateBlock(
> /* [in] */ VARIANT_BOOL v) = 0;
>
> virtual /* [nonbrowsable][restricted][hidden][id][propget] */
> HRESULT STDMETHODCALLTYPE get_inflateBlock(
> /* [out][retval] */ VARIANT_BOOL *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onbeforedeactivate(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onbeforedeactivate(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE setActive( void) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_contentEditable(
> /* [in] */ BSTR v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_contentEditable(
> /* [out][retval] */ BSTR *p) = 0;
>
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE
> get_isContentEditable(
> /* [out][retval] */ VARIANT_BOOL *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_hideFocus(
> /* [in] */ VARIANT_BOOL v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_hideFocus(
> /* [out][retval] */ VARIANT_BOOL *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_disabled(
> /* [in] */ VARIANT_BOOL v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_disabled(
> /* [out][retval] */ VARIANT_BOOL *p) = 0;
>
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE
> get_isDisabled(
> /* [out][retval] */ VARIANT_BOOL *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onmove(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onmove(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_oncontrolselect(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_oncontrolselect(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE fireEvent(
> /* [in] */ BSTR bstrEventName,
> /* [in][optional] */ VARIANT *pvarEventObject,
> /* [out][retval] */ VARIANT_BOOL *pfCancelled) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onresizestart(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onresizestart(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onresizeend(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onresizeend(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onmovestart(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onmovestart(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onmoveend(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onmoveend(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onmouseenter(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onmouseenter(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onmouseleave(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onmouseleave(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onactivate(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onactivate(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_ondeactivate(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_ondeactivate(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE dragDrop(
> /* [out][retval] */ VARIANT_BOOL *pfRet) = 0;
>
> virtual /* [nonbrowsable][restricted][hidden][id][propget] */
> HRESULT STDMETHODCALLTYPE get_glyphMode(
> /* [out][retval] */ LONG *p) = 0;
>
> };
>
>
> #endif /* __IHTMLElement3_INTERFACE_DEFINED__ */
>
>
> #ifndef __IHTMLDocument4_INTERFACE_DEFINED__
> #define __IHTMLDocument4_INTERFACE_DEFINED__
>
> /* interface IHTMLDocument4 */
> /* [object][uuid][dual][oleautomation] */
>
>
> EXTERN_C const IID IID_IHTMLDocument4;
>
>
> MIDL_INTERFACE("3050f69a-98b5-11cf-bb82-00aa00bdce0b")
> IHTMLDocument4 : public IDispatch
> {
> public:
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE focus( void) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE hasFocus(
> /* [out][retval] */ VARIANT_BOOL *pfFocus) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_onselectionchange(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_onselectionchange(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE
> get_namespaces(
> /* [out][retval] */ IDispatch **p) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE createDocumentFromUrl(
> /* [in] */ BSTR bstrUrl,
> /* [in] */ BSTR bstrOptions,
> /* [out][retval] */ IHTMLDocument2 **newDoc) = 0;
>
> virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_media(
> /* [in] */ BSTR v) = 0;
>
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_media(
> /* [out][retval] */ BSTR *p) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE createEventObject(
> /* [in][optional] */ VARIANT *pvarEventObject,
> /* [out][retval] */ IHTMLEventObj **ppEventObj) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE fireEvent(
> /* [in] */ BSTR bstrEventName,
> /* [in][optional] */ VARIANT *pvarEventObject,
> /* [out][retval] */ VARIANT_BOOL *pfCancelled) = 0;
>
> virtual /* [id] */ HRESULT STDMETHODCALLTYPE createRenderStyle(
> /* [in] */ BSTR v,
> /* [out][retval] */ IHTMLRenderStyle **ppIHTMLRenderStyle) = 0;
>
> virtual /* [bindable][displaybind][id][propput] */ HRESULT
> STDMETHODCALLTYPE put_oncontrolselect(
> /* [in] */ VARIANT v) = 0;
>
> virtual /* [bindable][displaybind][id][propget] */ HRESULT
> STDMETHODCALLTYPE get_oncontrolselect(
> /* [out][retval] */ VARIANT *p) = 0;
>
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE
> get_URLUnencoded(
> /* [out][retval] */ BSTR *p) = 0;
>
> };
>
>
> #endif /* __IHTMLDocument4_INTERFACE_DEFINED__ */
>
> #endif /* MissingInterfacesH */
>
>
>
> --- MissingInterfaces.cpp ---
>
> #include "MissingInterfaces.h"
>
> const IID IID_IHTMLElement3 = {0x3050f673, 0x98b5, 0x11cf, {0xbb, 0x82,
> 0x00, 0xaa, 0x00, 0xbd, 0xce, 0x0b}};
> const IID IID_IHTMLDocument4 = {0x3050f69a, 0x98b5, 0x11cf, {0xbb, 0x82,
> 0x00, 0xaa, 0x00, 0xbd, 0xce, 0x0b}};
>
>
> Gambit
>
>
Technical Details
Message-ID:
<43e000ee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43dfa1e5$1@newsgroups.borland.com> <43dfb00a$1@newsgroups.borland.com> <43dfedf0$1@newsgroups.borland.com> <43dffc47$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 Reply-To: "Mitch McInelly" <mitch@agencysoftware.com> From: "Mitch McInelly" <mitch@agencysoftware.com> Newsgroups: borland.public.cppbuilder.internet.web References: <43dfa1e5$1@newsgroups.borland.com> <43dfb00a$1@newsgroups.borland.com> <43dfedf0$1@newsgroups.borland.com> <43dffc47$1@newsgroups.borland.com> Subject: Re: IHTMLSelectElement put_onchange syntax Date: Tue, 31 Jan 2006 16:25:29 -0800 Lines: 318 Organization: Agency Software, Inc. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 207.88.115.45 Message-ID: <43e000ee$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138753774 207.88.115.45 (31 Jan 2006 16:29:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail