Quote:Original post by Mike2343
Quoted as its exactly what I was trying to get at. I read Codeka's solution and honestly it sounds hackish to me. Thats why I was trying to really get more information so we could actually help the OP develop a "proper" solution to his issues.
I was mostly responding to the people saying "put the WndProc in your class" or "post a special message", "make it a global" or whatever. My second response did come off a bit harsh, and I apologize for that :-)
Anyway, I agree that in many cases, there might be a better way to do things, and certainly in this particular instance that may very well be the case.
Having said that, my solution is quite common if you're writing a Win32 wrapper and want to pass an instance of your "window" class to the WndProc.