]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/html/htmlwin.h
don't generate a scroll event when setting scroll position from scroll event handler
[wxWidgets.git] / include / wx / html / htmlwin.h
index 1a250ff73711b605b2ce65dcca8f50bed1187f27..dd22df3b2dfb51890d8857c028a8feea6384bd96 100644 (file)
@@ -134,7 +134,7 @@ public:
  */
 class WXDLLIMPEXP_HTML wxHtmlWindowMouseHelper
 {
-public:
+protected:
     /**
         Ctor.
 
@@ -142,6 +142,14 @@ public:
      */
     wxHtmlWindowMouseHelper(wxHtmlWindowInterface *iface);
 
+    /**
+        Virtual dtor.
+
+        It is not really needed in this case but at leats it prevents gcc from
+        complaining about its absence.
+     */
+    virtual ~wxHtmlWindowMouseHelper() { }
+
     /// Returns true if the mouse moved since the last call to HandleIdle
     bool DidMouseMove() const { return m_tmpMouseMoved; }
 
@@ -224,7 +232,7 @@ private:
 
 class WXDLLIMPEXP_HTML wxHtmlWindow : public wxScrolledWindow,
                                       public wxHtmlWindowInterface,
-                                      private wxHtmlWindowMouseHelper
+                                      public wxHtmlWindowMouseHelper
 {
     DECLARE_DYNAMIC_CLASS(wxHtmlWindow)
     friend class wxHtmlWinModule;