I've successfully create some button controls at run-time. However, I don't know how to add the message (ON_BUTTON_CLICK) mapping for these controls at the run-time. Normally, the message mapping is implemented by adding some code at message area like
However, since all these buttons are created at run time. It is no way to add in any definition in that area during the run time.
Please, give me some idea!