HTTP links in About Dialogs

Started by
5 comments, last by Chefbrenner 22 years, 9 months ago
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
Greetings,ChefbrennerRemember: If it breaths it can be killed!
Advertisement
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--
--Tr][aD--
the links are made by using COM interfaces. i can explain it all to you exactly if you REALLY want to know.
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
Yes, I REALLY want to know how

Thx,
Chefbrenner
Greetings,ChefbrennerRemember: If it breaths it can be killed!
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
BeSIt's Da BOMB Baby!!!. o O ~ A little nonsense now and then,is relished by the wisest men~ O o .-- Willy Wonka
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);  

This topic is closed to new replies.

Advertisement