Archived

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

Rob Lemmens

Windowproc in a class

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

Arkon
[QSoft]
Its possible, do a search for yourself. I think Oluseyi has written an article on it which should be posted in the next few weeks.

Share this post


Link to post
Share on other sites