Question : MFC7 CDHtmlDialog: How to cancel a navigation in OnBeforeNavigate

MFC7 class CDHtmlDialog has a virtual function OnBeforeNavige. BUT it does not have the Cancel parameter used to cancel the navigation.

How can i cancel a navigation according to a specific url using the CDHtmlDialog class?

Thanks,
Michal.

Answer : MFC7 CDHtmlDialog: How to cancel a navigation in OnBeforeNavigate

You can overload OnBeforeNavigate2().  That method has a cancel parameter that you can change to true.  It has the same parameters as the one in CHtmlView.
Random Solutions  
 
programming4us programming4us