X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/040b9528d149c2bb2497d47d9175635c03baffe2..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/msw/headerctrl.h?ds=sidebyside diff --git a/include/wx/msw/headerctrl.h b/include/wx/msw/headerctrl.h index 38bf952f54..db702c5a19 100644 --- a/include/wx/msw/headerctrl.h +++ b/include/wx/msw/headerctrl.h @@ -3,7 +3,6 @@ // Purpose: wxMSW native wxHeaderCtrl // Author: Vadim Zeitlin // Created: 2008-12-01 -// RCS-ID: $Id$ // Copyright: (c) 2008 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -46,7 +45,14 @@ public: virtual ~wxHeaderCtrl(); - + +protected: + // override wxWindow methods which must be implemented by a new control + virtual wxSize DoGetBestSize() const; + virtual void DoSetSize(int x, int y, + int width, int height, + int sizeFlags = wxSIZE_AUTO); + private: // implement base class pure virtuals virtual void DoSetCount(unsigned int count); @@ -58,12 +64,6 @@ private: 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; - virtual void DoSetSize(int x, int y, - int width, int height, - int sizeFlags = wxSIZE_AUTO); - // 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); @@ -90,6 +90,7 @@ private: int MSWFromNativeIdx(int item); // this is the same as above but for order, not index + int MSWToNativeOrder(int order); int MSWFromNativeOrder(int order); // get the event type corresponding to a click or double click event @@ -125,7 +126,10 @@ private: // the offset of the window used to emulate scrolling it int m_scrollOffset; - DECLARE_NO_COPY_CLASS(wxHeaderCtrl) + // actual column we are dragging or -1 if not dragging anything + int m_colBeingDragged; + + wxDECLARE_NO_COPY_CLASS(wxHeaderCtrl); }; #endif // _WX_MSW_HEADERCTRL_H_