Quote Originally Posted by siavoshkc
You mean storing this in an static member pointer?
No, storing the object (or more likely a pointer to the object) in a function object. In such a case, the function object serves as a wrapper for the non-static member function call, i.e., for each separate non-static member function call that you want to pass, you have a different function object class. On the other hand, maybe you could just directly pass a pointer to the WndMain object, I'm not sure.