]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/html/htmlcell.h
corrected to allow drag and drop for mingw32/gcc295
[wxWidgets.git] / include / wx / html / htmlcell.h
index 23293c93b05146a212cc0d68311f0546c6fa8d46..e413f3764b390993d5bf63e492ea5c80681da1c0 100644 (file)
 #define __HTMLCELL_H__
 
 #ifdef __GNUG__
-#pragma interface
+#pragma interface "htmlcell.h"
 #endif
 
 #include "wx/defs.h"
-#if wxUSE_HTML
 
+#if wxUSE_HTML
 
-#include <wx/html/htmltag.h>
-#include <wx/html/htmldefs.h>
-#include <wx/window.h>
+#include "wx/html/htmltag.h"
+#include "wx/html/htmldefs.h"
+#include "wx/window.h"
 
 class wxHtmlCell;
 class wxHtmlContainerCell;
@@ -271,6 +271,7 @@ class WXDLLEXPORT wxHtmlWidgetCell : public wxHtmlCell
                 // if w != 0 then the m_Wnd has 'floating' width - it adjust
                 // it's width according to parent container's width
                 // (w is percent of parent's width)
+        ~wxHtmlWidgetCell() {if (m_Wnd) m_Wnd -> Destroy(); }
         virtual void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
         virtual void DrawInvisible(wxDC& dc, int x, int y);
         virtual void Layout(int w);