How to handle the messages for controls which created at run time?

(Include windows stardard control and ActiveX control)