1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

url on a text in mfc dlg

Discussion in 'MFC' started by fenomeno83, Apr 14, 2006.

  1. fenomeno83

    fenomeno83 New Member

    how can I assiciate a link(URL) to a static text with mfc dialog based?
     
  2. shabbir

    shabbir Administrator Staff Member

    This cannot be done directly. All you need to do is Derive a class from the CStatic and then change the font of the control to look like hyperlink and overwrite the Click event to open the default browser and display the URL.

    Thanks
    Shabbir
     
  3. fenomeno83

    fenomeno83 New Member

    can I have an example code?thanks
     
  4. shabbir

    shabbir Administrator Staff Member

    I have created a sample of how to [thread=741]Make CStatic into a Hyperlink.[/thread]
     
  5. fenomeno83

    fenomeno83 New Member

    thank you very much!!!!!
     
  6. shabbir

    shabbir Administrator Staff Member

    My pleasure.
     

Share This Page