|
-
August 30th, 2009, 03:12 PM
#1
multiple buttons using the same OnBnClicked
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 :-)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|