Cancel CHtmlView::OnBeforeNavigate2
Windows API
1
Posts
1
Posters
2
Views
1
Watching
-
Hi, I'm expericieng a strange problem with Vista Ultimate. All my applications use CHtmlView to show most of the data and allow easy navigation. I use quite offen links to allow me to parse the requested data and easily catch them on BeforeNavigate2. See the example: CMyHtmLView::OnBeforeNavigate2(...) { if(sUrl == _T("res://MyApp.exe/FindInfo?id=1")) { // Do Something with the Data *pbCancel = TRUE; } ... } It used to work well on previous Windows even with IE 7. Now on Windows Vista a DSN error message is shown in the Html View everytime I cancel the Navigation. Is there any way to avoid this? Thanks.
Crercio O. Silva / DBTools Software http://www.dbtools.com.br