\func{virtual bool}{AssociateModel}{\param{wxDataViewModel* }{model}}
Associates a \helpref{wxDataViewModel}{wxdataviewmodel} with the
-control.
+control. This increases the reference count of the model by 1.
\membersection{wxDataViewCtrl::Create}\label{wxdataviewctrlcreate}
{\small%
\begin{verbatim}
- wxDataViewCtrl *musicCtrl = new wxDataViewCtrl( this, ID_MUSIC_CTRL, wxDefaultPosition,
- wxDefaultSize, wxDV_MULTIPLE );
+ wxDataViewCtrl *musicCtrl = new wxDataViewCtrl( this, ID_MUSIC_CTRL );
wxDataViewModel *musicModel = new MyMusicModel;
m_musicCtrl->AssociateModel( musicModel );
musicModel->DecRef(); // avoid memory leak !!
-
// add columns now
\end{verbatim}
}%
wxDataViewTreeStore is a specialised \helpref{wxDataViewModel}{wxdataviewmodel}
for displaying simple trees very much like \helpref{wxTreeCtrl}{wxtreectrl}
does and it offers a similar API. This class actually stores the entire
-tree (therefore its name) and implements all virtual from the base class
-so it can be used directly without having to derive any class from it.
+tree (therefore its name) and implements all virtual methods from the base
+class so it can be used directly without having to derive any class from it.
This comes at the price of much reduced flexibility.
\wxheading{Derived from}
<dataview.h>
+\wxheading{Library}
+
+\helpref{wxAdv}{librarieslist}
+
+
\membersection{wxDataViewTreeStore::wxDataViewTreeStore}\label{wxdataviewtreestorewxdataviewtreestore}
\func{}{wxDataViewTreeStore}{\void}