]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/dataview.h
fix memory leak; allocate the DC before SetFont() is called on the status bar
[wxWidgets.git] / include / wx / generic / dataview.h
index a4780c42abb67d5fc7736bac64cbfe7ed7f9fd5b..bf698082e37229e2a0aec3df527e383674796d69 100644 (file)
@@ -449,9 +449,13 @@ public:
     virtual bool IsExpanded( const wxDataViewItem & item ) const;
 
     virtual void SetFocus();
-    
+
+#if wxUSE_DRAG_AND_DROP
     virtual bool EnableDragSource( const wxDataFormat &format );
     virtual bool EnableDropTarget( const wxDataFormat &format );
+#endif // wxUSE_DRAG_AND_DROP
+
+    virtual wxBorder GetDefaultBorder() const;
 
 protected:
     virtual int GetSelections( wxArrayInt & sel ) const;
@@ -518,7 +522,7 @@ private:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxDataViewCtrl)
-    DECLARE_NO_COPY_CLASS(wxDataViewCtrl)
+    wxDECLARE_NO_COPY_CLASS(wxDataViewCtrl);
     DECLARE_EVENT_TABLE()
 };