\helpref{Cleared}{wxdataviewmodelcleared}. There are
plural forms for notification of addition, change
or removal of several item at once. See
-\helpref{ItemsAdded}{wxdataviewmodelitesmadded},
+\helpref{ItemsAdded}{wxdataviewmodelitemsadded},
\helpref{ItemsDeleted}{wxdataviewmodelitemsdeleted},
-\helpref{ItemsChanged}{wxdataviewmodelitemschanged},
+\helpref{ItemsChanged}{wxdataviewmodelitemschanged}.
Note that wxDataViewModel does not define the position or
index of any item in the control because different controls
Note that wxDataViewModel is reference counted, derives from
\helpref{wxObjectRefData}{wxobjectrefdata} and cannot be deleted
-directly as it can be shares by several wxDataViewCtrl. This
+directly as it can be shared by several wxDataViewCtrls. This
implies that you need to decrease the reference count after
associating the model with a control like this:
{\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}
}%