Quote Originally Posted by JSoftware View Post
What's wrong with the good old SetWindowLong with GWL_USERDATA trick?
Nothing - I just wanted it done like that. The purpose was to show that there are different ways of doing the same thing. Of course, the above is a rough sketch, still waiting for improvements. I just wanted to show you a concept you could possibly use to build your own class.