MFC: create a hyperlink with a button

Is there an easy way in MFC to add a hyperlink to a button? I have searched the net and they seem to suggest tricky things.

Thank.

+2


source to share


2 answers


This video shows how to use the Common SysLink Control ( CLinkCtrl ). Please be aware that MFC support for this control is new and requires VS2008 and the Feature Pack.



Remember the SysLink control is XP +. If you need to support older platforms or use an older VS, the good old CStaticLink Paul DiLascia (RIP) is probably your best bet .

+4


source


MFC does not implement hyperlink buttons (in fact, regular win32 buttons do not support it).



You will need to use third party buttons.
One option is to use the FooButton class , which supports hyperlinks.

0


source







All Articles