I am making a calculator. I want to implement it like this:
I have 10 buttons from (0-9). When I press one of the button, the caption of the button is considered as the number selected. So I want to make an array of these buttons and hence the index number tell me also the selected number! I have already done this in VB.
How can I make an array of the control in MFC?
I can define it as:

CButton M_Button_Number[10];

but what about the resource ID of the buttons? Will they be same, or different?
please help!