+namespace
+{
+
+// Returns true only if the id is wxID_HELP and the label is "Help" or empty.
+bool IsHelpButtonWithStandardLabel(wxWindowID id, const wxString& label)
+{
+ if ( id != wxID_HELP )
+ return false;
+
+ if ( label.empty() )
+ return true;
+
+ const wxString labelText = wxStaticText::GetLabelText(label);
+ return labelText == "Help" || labelText == _("Help");
+}
+
+} // anonymous namespace