Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CHtmlView question

CHtmlView question

Scheduled Pinned Locked Moved C / C++ / MFC
questionhtmlhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nick Armstrong
    wrote on last edited by
    #1

    I am using an CHtmlView in my application and was just wondering whether you could do something or not. Is it possible to know when a user clicks on a hyperlink? I'll explain why I wish to do this for a bit more background. The user open's up a record which is an html page generated from a text file that is stored on the local disk. Depending on certain criteria, hyperlinks are built in to this record. Because this page is generated automatically I want to be able to track which hyperlink is clicked on so I can generate the relevant destination page automatically so I don't have to store (potentially) lots of html files on the local disk. Any ideas? Thanks for any help or suggestions in advance, Nick

    J 1 Reply Last reply
    0
    • N Nick Armstrong

      I am using an CHtmlView in my application and was just wondering whether you could do something or not. Is it possible to know when a user clicks on a hyperlink? I'll explain why I wish to do this for a bit more background. The user open's up a record which is an html page generated from a text file that is stored on the local disk. Depending on certain criteria, hyperlinks are built in to this record. Because this page is generated automatically I want to be able to track which hyperlink is clicked on so I can generate the relevant destination page automatically so I don't have to store (potentially) lots of html files on the local disk. Any ideas? Thanks for any help or suggestions in advance, Nick

      J Offline
      J Offline
      Jon
      wrote on last edited by
      #2

      You need to look at the IE4 Event "BeforeNavigate2". Look at the help for this and then work out how to get the code to work for CHtmlView...

      N 1 Reply Last reply
      0
      • J Jon

        You need to look at the IE4 Event "BeforeNavigate2". Look at the help for this and then work out how to get the code to work for CHtmlView...

        N Offline
        N Offline
        Nick Armstrong
        wrote on last edited by
        #3

        yep just found it, cheers anyway :) Nick

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups