J
John E Katich
How do I assign a unique Id (like WM_USER+nnn) to a control?
How do I assign a unique Id (like WM_USER+nnn) to a control?
I have a WinForm that has 6 Buttons that have a lot of commonality between
them. When Clicked, I would like the same Event Handler Function to handle
all 6 Buttons and use a switch statement to handle to specifics for a given
Button. To me this seems like much less code having 6 Event Handler
Functions.
The second part of the issue is, in the Event Handler Function, how do I do
the equivalent of casting the Syetem::Object *s to Button *b so I can get at
the Button's (or any sender's) variables.