|
-
June 20th, 2002, 10:31 PM
#1
Subclassing an ActiveX control
Hello -
I'm trying to figure out how to subclass an ActiveX control. I need to
extend the functionality of it. Ultimately I need to intercept OnPaint and
OnMouseXXX events. Once I have processed them, I then need to pass them on
to the ActiveX control so that it can process them.
I'm trying to do something like:
public class MyClass : AxTheActiveXControl
{
public MyClass() {}
}
I was thinking that I would inherit the ActiveX controls properties.
So, in the code that instantiates MyClass
MyClass myClass = new MyClass();
myClass.property = 1;
I don't seem to be getting anywhere with this. Obviously I'm missing
something.
Any thoughts, pointers, etc would be appreciated.
Thanks,
john
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|