![]() |
| ||
| one event handler function for a number of messages - MFC Hello, I'm writing a GUI using MFC. I have a number of press buttons that preform identical tasks on different members of an array. I know how to make a handler function for each button. I'm looking for a way to use the same function for all buttons and within that function to use a SWITCH to distinguish between pressed buttons. My question is, when using one function for a number of messages, how could I tell which button sent the message? Is there some function that tells me the ID of the message sender? Thank you. |
| ||
| Re: one event handler function for a number of messages - MFC well someone told me about this thread, that seems to work. http://www.programmersheaven.com/mb/...tion/?S=B20000 |
| ||
| Re: one event handler function for a number of messages - MFC Nice. |
| All times are GMT -4. The time now is 5:19 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC