Adam Keys schrieb: > > This perhaps is a > newbie question! How do I set the [out] cancel parameter to True when > receiving > a BeforeNavigate2 event? I am calling Navigate2( "someurl" ) on an > InternetExplorer.Application object. The events are successfully firing > through my EventSink > object, however returning a True for the BeforeNavigate2 event does not > cancel the > operation.
One of those questions where I have to answer: You cannot currently return [out] parameters from event handlers, although I have plans and ideas how to extend comtypes to allow it. I will soon post some notes about that; maybe it can be approached for the next or one of the next releases. Thomas ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users