I've got many (many) buttons on screen and I'd like to write just one OnClick event for all of them.
The question is for my Onclick function, is it possible to tell which button has called the onclick ?

I'd like to achieve the following:

void CTestDlg::OnBnClicked()
{
int i = **Determine which button was clicked, numbered one to 32**

ProcessButton(i);
}

Before anyone comments on "why have I got 32 buttons on screen" its because its realtime, and yes it does look awful and the client has asked for it to look so bad specifically :-)