CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Exclamation Help needed : I need to open tabs in IE using VC++

    Hi all, i have posted this in C++ and WinAPI forum... but, i didnt get a reply...

    The thread instead is getting burried... so i have no hope that anyone will answer it there.

    thats why i am re-posing the same question here, sorry.

    Coming to Question...,


    I am having a window, a simple window with two edit controls on it and a button.

    Now, on the first Edit control i need to enter a URL or link, and in the Seconf Edit it takes input in between 1 to 10 integer values.

    And, when i press the Button control, i need to open up the Internet Explorer, our IE with N number of Tabs open with the URL in the Editbox.

    Where N is the integer value i take from the second Edit control.

    I Read MSDN documentation and found way to open Default Browser.. but dont know how to Open multiple tabs and assign the same URL to each..

    Please help me.. i cant find any Tutorials or Code snips regarding this, and i asked google. nothing found.

    Thanks in advance, seeking for your valuable inputs...

    PS : Please Atleast Reply, whether this is Possible or Not...

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Help needed : I need to open tabs in IE using VC++

    Why are you sure the user PC your App is about to be installed always will have IE7 or higher or any other Internet browser using tabs?
    And note also, that it is User who chooses how any link should be opened: in a new browser instance or in a new tab or in already opened tab or/and instance.
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Smile Re: Help needed : I need to open tabs in IE using VC++

    Thanks for reply, guru.

    but, its not compulsary that the browser must be IE. can i do it with the default Browser?

    I mean, if that browser does not supports tabs, the by default it will open in new windows.. thats no problem..

    But now, i need to make this work only for IE.... can you please help me guru? or suggest me some methods, or tell me if this is possible or not....

    i will be thankful

  4. #4
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Re: Help needed : I need to open tabs in IE using VC++

    no answers?

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Help needed : I need to open tabs in IE using VC++

    I am not going to help you in these, IMHO, wrong assumptions.
    Again: the end user, and the only end user, may choose how to open links from external programs! See the attachment:
    Attached Images Attached Images
    Victor Nijegorodov

  6. #6
    Join Date
    Feb 2009
    Posts
    42

    Re: Help needed : I need to open tabs in IE using VC++

    Probably it is possible, but on the other hand it may not be possible. Try to check the messages with Spy++ what messages browser is getting when you open the new tab. Off course you need to check this for all major browsers Opera, Safari, Firefox 2,3, IE 5,6,7,8 and Chrome, and make separate functions for all browsers because they are probably not using the same command. Then you need to distinguish which browser(s) is/are installed on the system, check which browser is default, or opened, and then post the message to the opened program.
    Again if program is not using any message for opening the tab, then you are stuck.

  7. #7
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Talking Re: Help needed : I need to open tabs in IE using VC++

    @ VictorN and streamer

    Thanks for your replies...

    I've concluded that its possible though, but impossible!

    Anyways, thanks Victor for your Image screenshot. Actually i wasnt awared about that setting

    Now, i coded in a way, the program opens a given link in the default browser in the System.

    hanks again for your valuable suggestions
    "I studied everything but never topped. Today, toppers of the world's best universities are my employees"

    -William Henry Gates (Bill Gates)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured