I have a dialog with several checkboxes. The code that is executed when one of the checkboxes is clicked is very similar for all checkboxes. I would like to be able to set the ON_BN_CLICKED macro for all my checkboxes to execute the same function then determine from which checkbox the message came.
Does anyone know of a way to determine what control a message came from?

