let's say i create a window and want to subclass it.. let's say my window creation process is wrapped in a class.. and i have a function called allowsubclasswindow(which changes the wndproc if wanted...not the problem) and a function called AddSubclassMessage(which adds a message that would be subclassed) how would i tell the window to call the wndproc for sublcassing when it receives these messages? without having to write a wndproc with switch..case...for specific messages.., but rather for any message that is added to the window's subclassmessage? it probably sounded horrible, but would anyoen be able to help me?
thanks a lot