]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/headerctrl.h
update the generic wxHeaderCtrl implementation after r57161
[wxWidgets.git] / include / wx / msw / headerctrl.h
index c1c09fa38d6e16df4f089b9346fed3770d43e133..74919ef11111ed0a7271397626fecd0c65a8b09f 100644 (file)
@@ -46,12 +46,14 @@ public:
 
     virtual ~wxHeaderCtrl();
 
+
 private:
     // implement base class pure virtuals
+    virtual void DoSetCount(unsigned int count);
     virtual unsigned int DoGetCount() const;
-    virtual void DoInsert(const wxHeaderColumn& col, unsigned int idx);
-    virtual void DoDelete(unsigned int idx);
-    virtual void DoShowSortIndicator(unsigned int idx, int sortOrder);
+    virtual void DoUpdate(unsigned int idx);
+
+    virtual void DoScrollHorz(int dx);
 
     // override wxWindow methods which must be implemented by a new control
     virtual wxSize DoGetBestSize() const;
@@ -62,6 +64,13 @@ 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);
+
+
     // the image list: initially NULL, created on demand
     wxImageList *m_imageList;