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. Need Hyperlink on Dialog

Need Hyperlink on Dialog

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

    Any idea how to create a hyperlink on a dialog so that when I click on the link it would open a document. I know it can be done using a button but would prefer if someone would show me how to implement a hyperlink Kind Regards Caoimh

    RaviBeeR R 2 Replies Last reply
    0
    • C Caoimh

      Any idea how to create a hyperlink on a dialog so that when I click on the link it would open a document. I know it can be done using a button but would prefer if someone would show me how to implement a hyperlink Kind Regards Caoimh

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      You can find several hyperlink controls here[^]. Set the target to "file://myFile.txt". /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

      1 Reply Last reply
      0
      • C Caoimh

        Any idea how to create a hyperlink on a dialog so that when I click on the link it would open a document. I know it can be done using a button but would prefer if someone would show me how to implement a hyperlink Kind Regards Caoimh

        R Offline
        R Offline
        Robert A T Kaldy
        wrote on last edited by
        #3

        Set Notify and Owner Draw style to the button (do not use Static control, because Static cannot be owner-drawn) In draw routine, you should draw a blue underlined text Handle a BN_CLICKED of the control: ShellExecute(NULL, _T("open"), _T("http://www.mff.cuni.cz"), NULL, NULL, SW_SHOWNORMAL); Enjoy! Robert-Antonio "Science is a differerntial equation. Religion is a boundary condition."

        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