probably something really simple but i'm new to MFC and was just wondering if there is any way to easily deal with ID's

for instance, i'm creating an audio mixer in a dialog application which therefore needs to contain instances of the same group of buttons, executing the same functions, but on different files.

eg. play1, stop1, play2, stop2, etc.

is there any way to create or access the ID's for the buttons so that instead of specifying each ID individually when needed, a for loop or simelar could be used to specify which set of buttons (ie which channel number) should be referred to?

thanks in advance