url on a text in mfc dlg

fenomeno83's Avatar
Light Poster
how can I assiciate a link(URL) to a static text with mfc dialog based?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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
0
fenomeno83's Avatar
Light Poster
can I have an example code?thanks
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I have created a sample of how to Make CStatic into a Hyperlink.
0
fenomeno83's Avatar
Light Poster
thank you very much!!!!!
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by fenomeno83
thank you very much!!!!!
My pleasure.