WXWidgets Event Arguments
问题 I'm trying to set up a window in WXWidgets with a grid of buttons. Each of these buttons will open another window. Now I know I can do this by having the call to each window in a separate function depending on the button that was pressed. But that seems a bit inefficient. What I want to do is have each of these buttons call the same function when clicked, but pass an ID which will be used to determine which window is opened up. The basic code I'm using is as follow (bits are stripped out, I