Adding an Event to ActiveX control created from DLL
Posted on 2004-10-04
I need to know how to add an Event to an ActiveX control I imported from a type library (DLL). As I received it, the control works fine but only fires a few Drag Events, OnEnter and OnExit. Before posting here I searched on the forums, but all the answers I could find assume I am creating an ActiveX control or Active Form from scratch, but I am using a DLL compiled in C++ that does not fire the events I want. I need to be able to track the mouse position inside this control. An example of how to add OnClick or Mousedown to such an ActiveX control would be very helpful.
Also any other workaround to track mouse position and clicks inside an ActiveX container would be sufficient.