This topic is now archived and is closed to further replies.

Windowproc in a class

This topic is 5745 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can i define a window procedure in a class? If so how would i do this. i tried to but i always get errors. I really need to do this because i need to use members of the class in the windowprocedure. Somebody please help me!

Share this post

Link to post
Share on other sites
you can''t do it.
the one and only reason is because CLASS methods get another parameter which is THIS ofcourse
and then your CALLBACK method/function in this case is not a real CALLBACK functino anymore

that''s the reason
to bypass it make it a static callback method or something

i just put them out of the class, it just came to my mind the static trick, check it out

good luck
share the results