Assuming you want MainFrame::Config to be called if the menu item created by
yourMenu->Append(SOME_ID, wxT("&Configuration"));
gets clicked, use
this->Bind(wxEVT_COMMAND_MENU_SELECTED, &MainFrame::Config, this, SOME_ID);
if this is your mainframe.