Having created a control array in Borland C++ Builder, how does one access the control which has generated a message.
#define NUM_IMG 10
TImage * image[NUM_IMG];
void __fastcall MyClick(TObject* Sender);
// construction of the array, where Image1 is a design time image with bitmap loaded.
for(int i = 0; i < NUM_IMG; ++i)
image[i] = new TImage(sbPictureScrollBox);
image[i]->Parent = sbPictureScrollBox;
image[i]->Picture = Image1->Picture;
image[i]->AutoSize = true;
image[i]->Top = i * 10;
image[i]->Left = 10;
image[i]->Visible = true;
image[i]->OnClick = MyClick;
In the implementation of the event handler MyClick, how do I find out which control has generated the event?