Hi,
I've made a MDI with a view dervied form CHtmlEditView.
The promblem is OnBeforeNavigate2.
This is my code.
void CXProcView::OnBeforeNavigate2(LPCTSTR lpszURL,DWORD nFlags,LPCTSTR lpszTargetFrameName,CByteArray& baPostedData,LPCTSTR lpszHeaders,BOOL* pbCancel)
{
*pbCancel = FALSE;
AfxMessageBox(lpszURL);
CHtmlEditView::OnBeforeNavigate2(lpszURL, nFlags,
lpszTargetFrameName, baPostedData,
lpszHeaders, pbCancel);
}
When I hit a link in my view I get the message from the AfxMessageBox. pbCancel is TRUE, but the page still loads.
If I don't run CHtmlEditView::OnBeforeNavigate2 from my CXProcView::OnBeforeNavigate2 then the page will not be ready.
Does someone knows what is wrong here?
Thanks
I've made a MDI with a view dervied form CHtmlEditView.
The promblem is OnBeforeNavigate2.
This is my code.
void CXProcView::OnBeforeNavigate2(LPCTSTR lpszURL,DWORD nFlags,LPCTSTR lpszTargetFrameName,CByteArray& baPostedData,LPCTSTR lpszHeaders,BOOL* pbCancel)
{
*pbCancel = FALSE;
AfxMessageBox(lpszURL);
CHtmlEditView::OnBeforeNavigate2(lpszURL, nFlags,
lpszTargetFrameName, baPostedData,
lpszHeaders, pbCancel);
}
When I hit a link in my view I get the message from the AfxMessageBox. pbCancel is TRUE, but the page still loads.
If I don't run CHtmlEditView::OnBeforeNavigate2 from my CXProcView::OnBeforeNavigate2 then the page will not be ready.
Does someone knows what is wrong here?
Thanks