Relationship Between ActiveX Control and <OBJECT> tag
There is probably a very simple answer to this but it has been eluding me all day. I have a fairly simple ActiveX control that I have written which works as it should when displayed in a browser.
The problem I have is that I'm not sure what the HTML <PARAM NAME="" VALUE=""> tags within the <OBJECT> tag actually call within my control. I have added a property using class wizard and attempted to set it using the <PARAM> tag. However, the 'set' method for this property doesn't get called and the value doesn't seem to change. What am I missing? I am new to writing ActiveX controls so perhaps it's just me misunderstanding the fundamental way in which these controls function.
Any help greatly appreciated.
Re: Relationship Between ActiveX Control and <OBJECT> tag
Hi,
Have you looked at MSDN?
Jeff
Re: Relationship Between ActiveX Control and <OBJECT> tag
Thanks but I've searched and searched through MSDN but haven't found the answer I seek. The link you provided is specific to the HTML Help ActiveX control but still doesn't tell me what will be called within my control.
Re: Relationship Between ActiveX Control and <OBJECT> tag
Quote:
Originally Posted by rcharisse
The problem I have is that I'm not sure what the HTML <PARAM NAME="" VALUE=""> tags within the <OBJECT> tag actually call within my control. I have added a property using class wizard and attempted to set it using the <PARAM> tag. However, the 'set' method for this property doesn't get called and the value doesn't seem to change. What am I missing?
You have to implement IPersistPropertyBag interface in your coclass. See my explanations regarding MFC ActiveX here.
Re: Relationship Between ActiveX Control and <OBJECT> tag
Thanks for your help, that's all I needed to know