Solved

Opening URL to a new window?

Posted on 2000-05-09
11
241 Views
Last Modified: 2013-11-20
Hi,
I have developed an app that is using CHtmlView class to display HTML docs in my dialogs. But the problem is that when I right click on a link and say "Open link in new window" it opens another instance of IE, which I don't want. Instead I want that my own new view should be generated. How can I do this.
Thanks in advance.
0
Comment
Question by:Moin
  • 6
  • 3
  • 2
11 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 2791817
Hi Moin,

I think (but do not know, cause I have no experience with this) you'll have to override you view's CHtmlView::OnNewWindow2() where you can create a new view and assign it to the passed LPDISPATCH pointer.

hope that helps,

ZOPPO
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 2791818
See MSDN article ID: Q184876 for samples of this...
0
 

Author Comment

by:Moin
ID: 2795594
This question has a deletion request Pending
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 31

Expert Comment

by:Zoppo
ID: 2795765
This question no longer is pending deletion
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 2795766
Why do you want to delete this task?
0
 

Expert Comment

by:maharia
ID: 2798861
Hi Moin,
  If you want to open your link to new IE window  then you just pass string to this function... and check for complete path od iexplore.exe....

ShellExecute(NULL,"open","C:\\Program Files\\Internet Explorer\\iexplore.exe",yourUrlString,NULL,SW_SHOW);
 
try out this and let me know.....
0
 

Author Comment

by:Moin
ID: 2798883
Please read my question carefully. Infact what you have proposed is currently happening to me and I don't want to happen this to me. :)
Thanks anyway for your time.
0
 

Expert Comment

by:maharia
ID: 2798922
Dear Moin,
 I had same problem as you but i tried this.... and got success...
why don'y you try and then reject answere...

.....

ShellExecute(NULL,"open","C:\\Program Files\\Internet Explorer\\iexplore.exe",yourUrlString,NULL,SW_SHOW);
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 2799170
Ehh, Moin,

what do you think about the comments I gave you? Did they help you? I think MSDN article Q184876 describes detailed exactly what you need...

ZOPPO
0
 

Author Comment

by:Moin
ID: 2803789
Mr. Zoppo, pls. post your comment as answer. Thanks
0
 
LVL 31

Accepted Solution

by:
Zoppo earned 100 total points
ID: 2803831
You're welcome...

have a nice day,

ZOPPO
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 108
Looking for a specific application/software 2 110
method notes when mouse over in eclipse 5 87
noX challenge 17 119
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question