Archived

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

HTTP links in About Dialogs

This topic is 6015 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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
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
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
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