Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   url on a text in mfc dlg (http://www.go4expert.com/forums/url-text-mfc-dlg-t727/)

fenomeno83 15Apr2006 02:53

url on a text in mfc dlg
 
how can I assiciate a link(URL) to a static text with mfc dialog based?

shabbir 17Apr2006 10:36

Re: url on a text in mfc dlg
 
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

fenomeno83 18Apr2006 00:42

Re: url on a text in mfc dlg
 
can I have an example code?thanks

shabbir 19Apr2006 22:23

Re: url on a text in mfc dlg
 
I have created a sample of how to Make CStatic into a Hyperlink.

fenomeno83 20Apr2006 14:57

Re: url on a text in mfc dlg
 
thank you very much!!!!!

shabbir 20Apr2006 20:09

Re: url on a text in mfc dlg
 
Quote:

Originally Posted by fenomeno83
thank you very much!!!!!

My pleasure.


All times are GMT +5.5. The time now is 15:08.