Add wxTL_NO_HEADER style to wxTreeListCtrl.

Closes #14838.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-11-19 18:07:55 +00:00
parent ab7f003482
commit c71b5269df
4 changed files with 19 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
// Purpose: Generic wxTreeListCtrl implementation.
// Author: Vadim Zeitlin
// Created: 2011-08-19
// RCS-ID: $Id: wxhead.cpp,v 1.11 2010-04-22 12:44:51 zeitlin Exp $
// RCS-ID: $Id$
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -1029,10 +1029,14 @@ bool wxTreeListCtrl::Create(wxWindow* parent,
}
m_view = new wxDataViewCtrl;
long styleDataView = HasFlag(wxTL_MULTIPLE) ? wxDV_MULTIPLE
: wxDV_SINGLE;
if ( HasFlag(wxTL_NO_HEADER) )
styleDataView |= wxDV_NO_HEADER;
if ( !m_view->Create(this, wxID_ANY,
wxPoint(0, 0), GetClientSize(),
HasFlag(wxTL_MULTIPLE) ? wxDV_MULTIPLE
: wxDV_SINGLE) )
styleDataView) )
{
delete m_view;
m_view = NULL;