]> git.saurik.com Git - wxWidgets.git/blob - src/common/headerctrlcmn.cpp
suppress (harmless) unused parameter warnings
[wxWidgets.git] / src / common / headerctrlcmn.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/headerctrlcmn.cpp
3 // Purpose: implementation of wxHeaderCtrlBase
4 // Author: Vadim Zeitlin
5 // Created: 2008-12-02
6 // RCS-ID: $Id$
7 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #ifndef WX_PRECOMP
27 #endif // WX_PRECOMP
28
29 #include "wx/headerctrl.h"
30
31 // ============================================================================
32 // wxHeaderCtrlBase implementation
33 // ============================================================================
34
35 extern WXDLLIMPEXP_DATA_CORE(const char) wxHeaderCtrlNameStr[] = "wxHeaderCtrl";
36
37 void wxHeaderCtrlBase::DeleteAllColumns()
38 {
39 const unsigned count = GetColumnCount();
40 for ( unsigned n = 0; n < count; n++ )
41 DeleteColumn(0);
42 }
43
44
45 void wxHeaderCtrlBase::ScrollWindow(int dx,
46 int WXUNUSED_UNLESS_DEBUG(dy),
47 const wxRect * WXUNUSED_UNLESS_DEBUG(rect))
48
49 {
50 // this doesn't make sense at all
51 wxASSERT_MSG( !dy, "header window can't be scrolled vertically" );
52
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" );
56
57 DoScrollHorz(dx);
58 }
59