|
-
Jun 2nd, 2002, 02:27 AM
#1
Thread Starter
PowerPoster
Subclassing in a class
I have a label class that needs to subclass its parent window whenever it's initialized. Now when I declared the window procedure inside the class and then try to set the window procedure to new one, I have to call like "&myclass::WindowProc" but that gives me an error message because I have to pass the arguements of WindowProc with it too. If I declared WindowsProc outside of the class then it'll work using "&WindowProc" but I won't be able to access any of the myclass members from inside the procedure and I won't recieve any message after that in my real window procedure because then I'll have two window procedures handling the messages for same window at the same time. I want to make the first method (declaring the window procedure as a function if the class and then somehow correctly passing its address as the new window procedure - not call the actual window procedure includign its arguements) work but maybe you have any idea of how to get it working that way.
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
|