// UI helpers
// ----------
-#if wxUSE_MENU
+#if wxUSE_MENUS
// show the popup menu containing all columns with check marks for the ones
// which are currently shown and return true if something was done using it
// (in this case UpdateColumnVisibility() will have been called) or false
// the ids of the items corresponding to the columns are consecutive and
// start from idColumnsBase
void AddColumnsItems(wxMenu& menu, int idColumnsBase = 0);
-#endif // wxUSE_MENU
+#endif // wxUSE_MENUS
// show the columns customization dialog and return true if something was
// changed using it (in which case UpdateColumnVisibility() and/or
// event handlers
void OnSeparatorDClick(wxHeaderCtrlEvent& event);
-#if wxUSE_MENU
+#if wxUSE_MENUS
void OnRClick(wxHeaderCtrlEvent& event);
-#endif // wxUSE_MENU
+#endif // wxUSE_MENUS
DECLARE_EVENT_TABLE()
};
BEGIN_EVENT_TABLE(wxHeaderCtrlBase, wxControl)
EVT_HEADER_SEPARATOR_DCLICK(wxID_ANY, wxHeaderCtrlBase::OnSeparatorDClick)
-#if wxUSE_MENU
+#if wxUSE_MENUS
EVT_HEADER_RIGHT_CLICK(wxID_ANY, wxHeaderCtrlBase::OnRClick)
-#endif // wxUSE_MENU
+#endif // wxUSE_MENUS
END_EVENT_TABLE()
void wxHeaderCtrlBase::ScrollWindow(int dx,
UpdateColumn(col);
}
-#if wxUSE_MENU
+#if wxUSE_MENUS
void wxHeaderCtrlBase::OnRClick(wxHeaderCtrlEvent& event)
{
ShowColumnsMenu(ScreenToClient(wxGetMousePosition()));
}
-#endif // wxUSE_MENU
+#endif // wxUSE_MENUS
// ----------------------------------------------------------------------------
// wxHeaderCtrlBase column reordering
// wxHeaderCtrl extra UI
// ----------------------------------------------------------------------------
-#if wxUSE_MENU
+#if wxUSE_MENUS
void wxHeaderCtrlBase::AddColumnsItems(wxMenu& menu, int idColumnsBase)
{
return true;
}
-#endif // wxUSE_MENU
+#endif // wxUSE_MENUS
bool wxHeaderCtrlBase::ShowCustomizeDialog()
{