I wish the documentation were clear, then I would be here less. I couldn't find wxID_ANY in the Bind or Connect documentation. I don't doubt it's somewhere else, but it belongs alongside the parameters.
No (oops, see edit) the function is not a method. The event passes the frame to the procedure. But the procedure is uncalled when the menus and toolbars are selected. I can't think of anything that would short-circuit them since it's cut and dry that the menu is pressed, etc. I would think there isn't another event channel that could step on the toes of those events. I guess, next I have to try to locate the WM_COMMAND processing code in wxWidgets and see what it's up to.Shouldn't that be:
EDITED: Oops, well the & is optional, and Bind works fine this way for other events. Sometimes with templates it's necessary.
I guess I thought your suggestion was the same as David's. Anyway, the Bind call is identical to several other event bindings that ARE working, so the problem is elsewhere.