Generic tree control fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#define _GENERIC_TREECTRL_H_
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "treectrg.h"
|
||||
#pragma interface "treectlg.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
@@ -394,5 +394,32 @@ private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl)
|
||||
};
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__)
|
||||
/*
|
||||
* wxTreeCtrl has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
*/
|
||||
|
||||
class WXDLLEXPORT wxTreeCtrl: public wxGenericTreeCtrl
|
||||
{
|
||||
public:
|
||||
DECLARE_DYNAMIC_CLASS(wxTreeCtrl)
|
||||
|
||||
wxTreeCtrl() {}
|
||||
|
||||
wxTreeCtrl(wxWindow *parent, wxWindowID id = -1,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
|
||||
const wxValidator &validator = wxDefaultValidator,
|
||||
const wxString& name = wxTreeCtrlNameStr)
|
||||
{
|
||||
Create(parent, id, pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif // _GENERIC_TREECTRL_H_
|
||||
|
||||
|
Reference in New Issue
Block a user