Archived

This topic is now archived and is closed to further replies.

Chefbrenner

HTTP links in About Dialogs

Recommended Posts

Chefbrenner    122
Hi Folks! I have a simple question: How can I make a HTTP link in my About Dialog as it can be seen in almost any program? (I use Visual C++) Greetings, Chefbrenner Edited by - Chefbrenner on June 27, 2001 2:02:32 AM

Share this post


Link to post
Share on other sites
TrIaD    122
worst-case reply:
use a hyperlink object (they must exist, or making your own should be horibly easy) and create a dialog resource for your dialog, and display that

--Tr][aD--

Share this post


Link to post
Share on other sites
sarem    122
the links are made by using COM interfaces. i can explain it all to you exactly if you REALLY want to know.

Share this post


Link to post
Share on other sites
sarem    122
what i meant to say was the IHLink object

http://msdn.microsoft.com/library/default.asp?url=/workshop/misc/hlink/reference/IFaces/IHlink/IHlink.asp

Edited by - sarem on June 27, 2001 2:40:35 AM

Share this post


Link to post
Share on other sites
wrenhal    122
quote:
Original post by Chefbrenner
Yes, I REALLY want to know how

Thx,
Chefbrenner


You can take this with a grain of salt if I'm wrong, as I know VB (No Laughs please).
But, can't you put a label on that window, then have the mouseclick event call the shellexec api function passing the URL to that function?



B e S
It's Da BOMB Baby!!!
. o O ~
A little nonsense now and then,
is relished by the wisest men
~ O o .
-- Willy Wonka

edited for Clarity.

Edited by - wrenhal on June 27, 2001 5:48:07 PM

Share this post


Link to post
Share on other sites
Clash Rocker    130
Yeah.
The ShellExecute() is an easy way.

Create a Label on the dialog and make sure the "Has Notify" is checked.
Then when that event is called:
  
ShellExecute(0, "open", "www.omf.com", "", "", 0);

Share this post


Link to post
Share on other sites