X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a000920547e25b92ce1dfa18f73d99dbf780db72..0dd9646ea8b9e6f3a5fa8c42b6a4954cf8e3a48d:/include/wx/msw/headerctrl.h diff --git a/include/wx/msw/headerctrl.h b/include/wx/msw/headerctrl.h index 130de040a8..b0a3ae5c0b 100644 --- a/include/wx/msw/headerctrl.h +++ b/include/wx/msw/headerctrl.h @@ -46,23 +46,37 @@ 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 DoShowColumn(unsigned int idx, bool show); - 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; // override MSW-specific methods needed for new control virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; + virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); // 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); + + // 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 wxImageList *m_imageList;