X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f24f65791310a4e0d1690f244658b837036aa270..0dd9646ea8b9e6f3a5fa8c42b6a4954cf8e3a48d:/include/wx/msw/headerctrl.h diff --git a/include/wx/msw/headerctrl.h b/include/wx/msw/headerctrl.h index 8a2c388417..b0a3ae5c0b 100644 --- a/include/wx/msw/headerctrl.h +++ b/include/wx/msw/headerctrl.h @@ -47,27 +47,36 @@ public: virtual ~wxHeaderCtrl(); - // this method is only overridden in order to synchronize the control with - // the main window when it is scrolled - virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL); - 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;