Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15671

Subclassing in a class module

$
0
0
Hello everybody!

I am very familiar with the concept of subclassing.

In order to subclass, a new WndProc address is required to redirect the messages to that proc.

In order to get the WndProc address, AddressOf operator can be used.

This is very standard.

My problem is, I am writing a class module that holds some controls and needs to subclass them internally, so no other modules are allowed to avoid external dependencies.

So, I wonder, is there a way to subclass in such a way the WndProc will be a class method function?

Viewing all articles
Browse latest Browse all 15671

Trending Articles