Hello folks!
I have a problem and hope you can help me: I like to create an ocx which includes several controls. These controls should be subclassed. I like to use Paul Catons thunks for this, since they are very IDE safe. Because I don't want to copy several times the same code the each control, therefore I don't want to use the selfsub example, but the cSubclass class together with the iSubclass interface for my purpose.
But in this example the subclassing is started with following code:
Code:
oSub.Subclass Me.hwnd, Me
This does not work on the user control - I tried it with following code:
Code:
oSub.Subclass UserControl.hwnd, UserControl.Extender
Can somebody help me in here? Thanks!
EDIT: I was silly... I don't have to use UserControl.Extender!
Code:
oSub.Subclass UserControl.hwnd, Me