by James Bott » Mon May 15, 2006 11:33 pm
Silvio,
>yes I have understand but i have the images into a directory How I can make to make buttons in automatic ?
I'm not sure I understand your question. If you are asking how to define the buttons when you don't know how many there are, and the number might be changing? Or, is the number of buttons going to remain fixed just like the picture you showed?
If the number of buttons is fixed, then I would layout the dialog using a resource editor and then compile all the bitmaps into the EXE.
If the number is changing, then you are going to have to write some code to figure out the size of the dialog and the placement of the buttons depending on the number of buttons found.
James