Click here to Skip to main content
16,004,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I already noticed this. Pin
Masaaki Onishi26-May-00 11:51
Masaaki Onishi26-May-00 11:51 
GeneralRe: (Hopefully) a simple question on classes and inheritance. Pin
Chris Meech23-May-00 7:04
Chris Meech23-May-00 7:04 
GeneralRe: (Hopefully) a simple question on classes and inheritance. Pin
Member 432125-May-00 11:28
Member 432125-May-00 11:28 
GeneralUse a Text file to open my doc in a CRichEditView Pin
Olivier Cheneson22-May-00 7:11
sussOlivier Cheneson22-May-00 7:11 
QuestionNew browser as child window of existing one? Pin
mahesh22-May-00 2:40
mahesh22-May-00 2:40 
AnswerRe: New browser as child window of existing one? Pin
Erik Thompson22-May-00 12:12
sitebuilderErik Thompson22-May-00 12:12 
GeneralRe: New browser as child window of existing one? Pin
mahesh23-May-00 2:36
mahesh23-May-00 2:36 
GeneralRe: New browser as child window of existing one? Pin
Brian Hart25-Jun-00 13:30
Brian Hart25-Jun-00 13:30 
Dear Mahesh,

There are events that the WebBrowser control emits, which you can handle by implementing the DWebBrowserEvents2 dispatch interface in your program (or something, I forget Smile | :) ).

The event OnBeforeNavigate or OnBeforeNavigate2 (I forget again Smile | :) ) are called or fired after the Navigate() method is called but before navigation begins. It is passed parameters like the URL, do we want to cancel, so forth.

What I would do is to put new child-window-creation code in there, and pass the URL to the new window, which itself could contain a WebBrowser control.

Cheers,
Brian Hart Smile | :)
GeneralInternet Priority level Pin
Buck21-May-00 12:04
Buck21-May-00 12:04 
GeneralRe: Internet Priority level Pin
Arvind2321-May-00 20:08
Arvind2321-May-00 20:08 
GeneralRe: Internet Priority level Pin
Buck22-May-00 11:16
Buck22-May-00 11:16 
GeneralActiveX/COM registration problem. Pin
Member 237521-May-00 5:34
Member 237521-May-00 5:34 
GeneralRe: ActiveX/COM registration problem. Pin
Alex Gorev23-May-00 3:58
Alex Gorev23-May-00 3:58 
Questionhow to get the message when the user clicked the uparrow? Pin
Member 456620-May-00 16:29
Member 456620-May-00 16:29 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
pr0digy122-May-00 20:44
pr0digy122-May-00 20:44 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
pr0digy122-May-00 20:44
pr0digy122-May-00 20:44 
AnswerRe: Subclass the control or use PreTranslateMessage(...) function. Pin
Masaaki Onishi23-May-00 13:00
Masaaki Onishi23-May-00 13:00 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
Member 432125-May-00 11:44
Member 432125-May-00 11:44 
Generalsplitter with statusbar Pin
Darren Schroeder20-May-00 3:36
Darren Schroeder20-May-00 3:36 
GeneralRe: splitter with statusbar Pin
imsniper23-May-00 22:24
imsniper23-May-00 22:24 
QuestionHow to disable the menu item in a dialog ? Pin
Mani19-May-00 22:36
Mani19-May-00 22:36 
AnswerRe: How to disable the menu item in a dialog ? Pin
rkm21-May-00 2:06
rkm21-May-00 2:06 
GeneralAdding ToolBar to Dialog Pin
Mark19-May-00 22:36
Mark19-May-00 22:36 
GeneralRe: Adding ToolBar to Dialog Pin
rkm21-May-00 1:52
rkm21-May-00 1:52 
QuestionDll required to run exe ? Pin
Mani19-May-00 22:30
Mani19-May-00 22:30 

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.