Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCursors Pin
27-Sep-01 9:42
suss27-Sep-01 9:42 
GeneralRe: Cursors Pin
Christian Graus27-Sep-01 12:19
protectorChristian Graus27-Sep-01 12:19 
Generalxp style dialogbox Pin
bobby27-Sep-01 6:32
bobby27-Sep-01 6:32 
GeneralRe: xp style dialogbox Pin
Michael Dunn27-Sep-01 8:32
sitebuilderMichael Dunn27-Sep-01 8:32 
GeneralRe: xp style dialogbox Pin
bobby27-Sep-01 8:57
bobby27-Sep-01 8:57 
GeneralRe: xp style dialogbox Pin
Anders Molin27-Sep-01 9:31
professionalAnders Molin27-Sep-01 9:31 
Generalhooks --dll URGENT Pin
27-Sep-01 6:15
suss27-Sep-01 6:15 
GeneralInternetExplorer - BeforeNavigate2 Pin
27-Sep-01 5:51
suss27-Sep-01 5:51 
Hi
About 2 threads ago I asked how to compile my dll which works as a Browser Helper Object with InternetExplorer.
Now it works fine, although I have one question. I searched www.google.com and other sites but did not find an answer (only how to do with VisualBasic Frown | :(

My question is how to handle the BeforeNavigate2 event.

What I have so far is as follows:

STDMETHODIMP CIEHlprObj::BeforeNavigate2(IDispatch *pDisp, VARIANT *url, VARIANT *Flags, VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers, VARIANT_BOOL *Cancel) 
{
        return S_OK;
}


I want to be able to cancel the navigation if the user entered a restricted site.
Furthermore I want to change the url in order to redirect the navigation to a different site

how can I do this Confused | :confused:

thanks in advance
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Carlos Antollini27-Sep-01 6:49
Carlos Antollini27-Sep-01 6:49 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 6:54
suss27-Sep-01 6:54 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Not Active27-Sep-01 6:56
mentorNot Active27-Sep-01 6:56 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:09
suss27-Sep-01 7:09 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:23
suss27-Sep-01 7:23 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:28
suss27-Sep-01 7:28 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Erik Thompson27-Sep-01 7:35
sitebuilderErik Thompson27-Sep-01 7:35 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:51
suss27-Sep-01 7:51 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Erik Thompson27-Sep-01 10:58
sitebuilderErik Thompson27-Sep-01 10:58 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Carlos Antollini27-Sep-01 8:19
Carlos Antollini27-Sep-01 8:19 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 8:32
suss27-Sep-01 8:32 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Carlos Antollini27-Sep-01 8:41
Carlos Antollini27-Sep-01 8:41 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Michael Dunn27-Sep-01 8:12
sitebuilderMichael Dunn27-Sep-01 8:12 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 8:23
suss27-Sep-01 8:23 
QuestionPassing a CList (or reference to a CList) as a function parameter?? Pin
27-Sep-01 5:34
suss27-Sep-01 5:34 
AnswerRe: Passing a CList (or reference to a CList) as a function parameter?? Pin
Michael Dunn27-Sep-01 8:16
sitebuilderMichael Dunn27-Sep-01 8:16 
GeneralWebBrowser Control & 3D Borders Pin
27-Sep-01 4:43
suss27-Sep-01 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.