Re: Array of buttons in VC++
I don;t understand what you mean by common names but it is very easy if you keep a member integer vairable in your button class and in the OnClick handler put a check on that integer variable you can determine which button was clicked....
I need to control set of buttons in aloop
I have written a common handler for the set of buttons. But, i need to address them like
m_Button[i][j].SetWindowText("XXXX");
in a loop. i did it by changing the declaration of button as CButton m_Button[5][5];
but after that i could not go to class-wizard.
Re: array of buttons in VC++
got the solution:
result is there as a article here: Implementation of Array of Buttons: The Shuffle Game: