I embeded an ActiveX (MSCOMCTL.OCX TreeView) control in to my HTML resource. <OBJECT> </OBJECT> I then LoadResource(xxxx); on it. It displays okay, and I can set nodes, but how do I get the ITreeViewEvents in my CHTMLView derived class. I tried setting up a connectionpoint, but the object does not respond to the following code
IDispatch *pObjdisp = NULL;
IConnectionPointContainer *pConnCon = NULL;
IConnectionPoint *pConn = NULL;
pObjdisp->QueryInterface(IID_IConnectionPointContainer, (void **)&pConnCon);
//next call advise on pConn
pConn is always NULL. Is there a better way to sync with an ActiveX control in this situation.