X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/482d06f8b5917f9ba0bf1b5623a70262220aed52..9f5b54d1ef6a9d87758a21653bd3d19a49d0b75e:/include/wx/headerctrl.h?ds=sidebyside diff --git a/include/wx/headerctrl.h b/include/wx/headerctrl.h index a95d094cb3..64ca3c4540 100644 --- a/include/wx/headerctrl.h +++ b/include/wx/headerctrl.h @@ -130,6 +130,17 @@ public: // with wxHD_ALLOW_HIDE style bool ShowColumnsMenu(const wxPoint& pt, const wxString& title = wxString()); + // append the entries for all our columns to the given menu, with the + // currently visible columns being checked + // + // this is used by ShowColumnsMenu() but can also be used if you use your + // own custom columns menu but nevertheless want to show all the columns in + // it + // + // the ids of the items corresponding to the columns are consecutive and + // start from idColumnsBase + void AddColumnsItems(wxMenu& menu, int idColumnsBase = 0); + // show the columns customization dialog and return true if something was // changed using it (in which case UpdateColumnVisibility() and/or // UpdateColumnsOrder() will have been called)