class MyWebBrowser(activex.Control, WebBrowserModule.WebBrowser):
def OnBeforeNavigate2(self, pDisp, URL, Flags,
TargetFrameName, PostData, Headers, Cancel):
...
Cancel is a simple Python bool. Unlike in MFC
CHtmlView::OnBeforeNavigate2 I cannot send a value back by ref
this way. How to cancel the navigation?
Robert
---------
This member function is called by the framework to cause an event
to fire before a navigation occurs in the web browser.
virtual void OnBeforeNavigate2(
LPCTSTR lpszURL,
DWORD nFlags,
LPCTSTR lpszTargetFrameName,
CByteArray& baPostedData,
LPCTSTR lpszHeaders,
BOOL* pbCancel
);
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32