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. Trying to intercept Hyperlink dialog in edit mode CHtmlEditCtrl (WebBrowser control)

Trying to intercept Hyperlink dialog in edit mode CHtmlEditCtrl (WebBrowser control)

Scheduled Pinned Locked Moved C / C++ / MFC
htmlhelpquestion
1 Posts 1 Posters 3 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.
  • P Offline
    P Offline
    Paul Vickery
    wrote on last edited by
    #1

    Hi, I have an application that uses CHtmlEditCtrl for some WYSIWYG HTML editing. All is good, except that I need to add some custom protocols to the Hyperlink editor dialog. I have tried a couple of ways of doing this, but have some up against problem with each. The things tried are: 1. Open our own dialog in place of the in-built: ok if adding a new link, but when editing a link don't get the default behaviours of selecting the whole link text if caret is in middle of link, and can't get the existing URL to edit. 2. Catch the creation of the dialog with a hook, so I can fiddle with its controls: no good - the hook doesn't get entered on creation of the dialog I would prefer option 1 if I can: a. get it to select the whole link text (may not be required, but better if it can) b. retrieve the URL of the selected link Does anyone have any ideas? Has anyone managed to successfully intercept the Hyperlink dialog in any way? Thanks, Paul.


    "The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)

    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