Custom Text Hyperlinks in Richedit Control

Hope this is in the right channel.

I'm creating a console based program, but I'd like the console to have some advanced features, such as displaying hyperlinks.  Richedit will currently support hyperlinks formatted as "" or "file://c:\example.txt".  I'd like to have hyperlinks that don't use the reference as the link's display text.  Instead, it can just say "Click here", kind of like HTML.  Basically I'm looking for an equivalent to:
<a href="myprogram://id?12345">View Log</a>
but compatible with a richedit control.  Also, the link WON'T just be sent to the windows Shell.  The actual HREF will be handled internally by the program, so in my case, I'd be using an ID or something similar.

Should I even be using rich edit?  Anyone hear of a class that handles all this?  Not entirely urgent, but the quicker the better!

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jaime OlivaresSoftware ArchitectCommented:
You can use an HTML control instead, it will offer you all the features of a browser including scripting.
Jaime OlivaresSoftware ArchitectCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
oskard1Author Commented:
Awesome, great, Much appreciated.
Do you know how good this thing is with resources?  Is it stable?  I like the examples they give, I've often wanted to replicate Norton Antivirus Web Interface, but do we really know that this is how they went about implementing it?

The program is meant to be a small server, so I'd rather not require a larger amount of resources than necessary... The idea of scripting... relying on Microsoft's scripting services just kinda bugs me.

But good answer, I hadn't thought of this one!

-James Wilson Tyrrell Jr.,
Jaime OlivaresSoftware ArchitectCommented:
>Do you know how good this thing is with resources?
What do yo mean with resources? bitmaps? Anyway it will be stable depending on the HTML code you insert into controls, really CHtmlView is a Internet Explorer wrapper, so you have all the functionality.

>The idea of scripting... relying on Microsoft's scripting services just kinda bugs me.
Don't have to be VBScript, it could be JavaScript, for some interesting visual effects or validation of your Web interface.
oskard1Author Commented:
I just don't like the idea of putting an Internet Explorer component into my program, it seems clunky.  The sample program for SimpleBrowserForm takes up 8mb's of resources when loaded.  It seems like a lot, but a similar app with only a RichEdit box takes up 9 mb's.  That's basically what I meant, and in this case it looks like your idea is better.  I really appreciate the advice, thanks again!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.