I want to create n instances of CButton; n Buttons on my window. N is declared during runtime, so I need a way of creating it, obviusly:P
I've tried pointers.
I've created a CButton * buttons and used it like this:
buttons=new CButton[y*x*z];
where x,y,z are variables declaring number of buttons, all integreters.
So, than I used a for loop to 'manufacture' those pesky buttons...well, it works fine. FOR THE FIRST BUTTON - button[0], any other button wont draw to the screen.