X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7c75283f2144469e8fa6a24ca285b42fab69a6b..1dd82eff99693729c49a1c578f3b47356c5c6f0c:/wxPython/demo/ActiveX_IEHtmlWindow.py

diff --git a/wxPython/demo/ActiveX_IEHtmlWindow.py b/wxPython/demo/ActiveX_IEHtmlWindow.py
index b3bc40fbf7..698489e04b 100644
--- a/wxPython/demo/ActiveX_IEHtmlWindow.py
+++ b/wxPython/demo/ActiveX_IEHtmlWindow.py
@@ -10,9 +10,9 @@ if wx.Platform == '__WXMSW__':
 
 #----------------------------------------------------------------------
 
-class TestPanel(wx.Window):
+class TestPanel(wx.Panel):
     def __init__(self, parent, log, frame=None):
-        wx.Window.__init__(
+        wx.Panel.__init__(
             self, parent, -1,
             style=wx.TAB_TRAVERSAL|wx.CLIP_CHILDREN|wx.NO_FULL_REPAINT_ON_RESIZE
             )
@@ -160,7 +160,9 @@ class TestPanel(wx.Window):
 
     def OnNewWindow2(self, evt):
         self.logEvt(evt)
-##        evt.Veto()   # TODO
+        # Veto the new window.  Cancel is defined as an "out" param
+        # for this event.  See iewin.py
+        evt.Cancel = True   
 
     def OnProgressChange(self, evt):
         self.logEvt(evt)