]>
git.saurik.com Git - wxWidgets.git/blob - src/common/headerctrlcmn.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/headerctrlcmn.cpp
3 // Purpose: implementation of wxHeaderCtrlBase
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
29 #include "wx/headerctrl.h"
31 // ============================================================================
32 // wxHeaderCtrlBase implementation
33 // ============================================================================
35 extern WXDLLIMPEXP_DATA_CORE(const char) wxHeaderCtrlNameStr
[] = "wxHeaderCtrl";
37 void wxHeaderCtrlBase::DeleteAllColumns()
39 const unsigned count
= GetColumnCount();
40 for ( unsigned n
= 0; n
< count
; n
++ )
45 void wxHeaderCtrlBase::ScrollWindow(int dx
,
46 int WXUNUSED_UNLESS_DEBUG(dy
),
47 const wxRect
* WXUNUSED_UNLESS_DEBUG(rect
))
50 // this doesn't make sense at all
51 wxASSERT_MSG( !dy
, "header window can't be scrolled vertically" );
53 // this would actually be nice to support for "frozen" headers but it isn't
54 // supported currently
55 wxASSERT_MSG( !rect
, "header window can't be scrolled partially" );