]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/headerctrl.h
deprecate wxStringEq
[wxWidgets.git] / include / wx / msw / headerctrl.h
index 8a48ef0d56661d1d4ebc678a94ce9fc973a6dc8e..9a67856a8597afe06adc6a8c712ddc54e4941e2e 100644 (file)
@@ -55,6 +55,9 @@ private:
 
     virtual void DoScrollHorz(int dx);
 
+    virtual void DoSetColumnsOrder(const wxArrayInt& order);
+    virtual wxArrayInt DoGetColumnsOrder() const;
+
     // override wxWindow methods which must be implemented by a new control
     virtual wxSize DoGetBestSize() const;
 
@@ -65,19 +68,14 @@ private:
     // common part of all ctors
     void Init();
 
-    // wrapper around Header_{Set,Insert}Item(): either appends the item to the
-    // end or modifies the existing item by copying information from
-    // GetColumn(idx) to it
-    enum Operation { Set, Insert };
-    void DoSetOrInsertItem(Operation oper, unsigned int idx);
-
-    // send an event of the given type for the given column, return true if it
-    // was processed
-    bool SendEvent(wxEventType evtType, unsigned int idx);
+    // wrapper around Header_InsertItem(): insert the item by using information
+    // from GetColumn(idx) and at the given display position if order != -1
+    void DoInsertItem(unsigned int idx, int order);
 
-    // send a click or double click event (depending on dblclk value) for the
-    // click with the given button on the given item
-    bool SendClickEvent(bool dblclk, int button, unsigned int idx);
+    // get the event type corresponding to a click or double click event
+    // (depending on dblclk value) with the specified (using MSW convention)
+    // mouse button
+    wxEventType GetClickEventType(bool dblclk, int button);
 
 
     // the image list: initially NULL, created on demand