I guess you need to get the basics of MFC handling as its very simple a button click to get the button handler