Ok, I have no problems making a working wrapper. Ive seen several ways of doing this and I was just wondering what the most common was of doing it is. Ive seen people use global WndProc's, ive also seen (and I do this) use a static WndProc and then have a virtual one for your class, that you call from the static WndProc.



LinkBack URL
About LinkBacks



) apparently gives another option but the little i've read about them suggests to me that they may be no better than using the msg macros in windowsx.h ie you have to 'hard wire' the exact msg handler within your class hierarchy which gets called, breaking the advantage of polymorphism in this respect. I live in hope though, because I still tend to use the msg macros for simplicity and readability. Anyway there might be a way to implement a generic functor approach using template classes but again my knowledge here is very sketchy.
Thanx in advance