To be honest, these are not the things a newbie should try to do.
Anyway if you want to go that route, I can give you some suggestions, untested, maybe even wrong, maybe unhelpful. You may be better off not reading any further ...
That said, you can hook the window proc of an win32 window with setwindowlong (look at the msdn for its usage). Make sure you retrieve that the original value too and use that to call the original windowproc somewhere in your replacement.