PDA

View Full Version : Howto implement hyperlinks in C/C++



Ron
October 13th, 2002, 01:55 PM
Just use ShellExecuteEx and pass a URL nothing too it.

Ron
October 13th, 2002, 01:55 PM
Its programmed in delphi, You'll have to translate yourself.


ei.cbsize:=sizeof(ei);
ei.fMask:=0;
ei.wnd:=Settings.Mainwindow;
ei.lpVerb:=nil; ei.lpFile:=PCHAR('mailto:spamsomeoneelse@localhost ');
ei.lpParameters:=nil;
ei.lpDirectory:=nil;
ei.nShow:=SW_SHOW;
ShellExecuteEx(@ei);

Ron
October 13th, 2002, 01:55 PM
I never tried this in C++ but going by the Win32 api docs you'll need to make the Label Owner draw. Hope this helps.

simonjo
October 13th, 2002, 01:55 PM
Ron:

In the Girder Help.About box you've got some hyperlinks, can you get me some code to implement this in my plugins (so as to link to the documentation html files)


Thanx, Jo

simonjo
October 13th, 2002, 01:55 PM
Ron,

Would it be possible to provide:

1) the actual code fragment that is used in Help.About

2) the dialogbox RC source code


Thanx, Jo

simonjo
October 13th, 2002, 01:55 PM
Thanx Ron & Danijel,

The ShellExecute is working just fine, but I don't succeed in creating blue underlined text (resembling a hyperlink) in a dialogbox.

Tried WM_CTLCOLOR msg interception, etc... but it's not working out.

Is there any sample code available, prefferably in C/C++. This would save my day, well I mean my weekend.


Regards, Jo

Danijel_Pticar
October 13th, 2002, 01:55 PM
Hi.

ShellExecute(0, "open","http://www,girder.nl/", "", "",SW_SHOWNORMAL);