git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2909
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// declare our list class: this macro declares and partly implements MyList
// class (which derives from wxListBase)
// declare our list class: this macro declares and partly implements MyList
// class (which derives from wxListBase)
- WX_DECLARE_LIST(MyListElement, MyList)
+ WX_DECLARE_LIST(MyListElement, MyList);
// usually it will be found in the source file and not in the header
#include <wx/listimpl.cpp>
// usually it will be found in the source file and not in the header
#include <wx/listimpl.cpp>
+ WX_DEFINE_LIST(MyList);
// now MyList class may be used as a usual wxList, but all of its methods
// will take/return the objects of the right (i.e. MyListElement) type. You
// now MyList class may be used as a usual wxList, but all of its methods
// will take/return the objects of the right (i.e. MyListElement) type. You