Link to home
Start Free TrialLog in
Avatar of Fearum
Fearum

asked on

How do I make a label a link to a webpage?? (Borland C++ Builder)

How do I make a label a link to a webpage?? (in Borland C++ Builder)
Avatar of IainHere
IainHere

ShellExecute(handle, "open", "https://www.experts-exchange.com", NULL, NULL, SW_SHOWNORMAL);
Oops, I meant:

ShellExecute(handle, "open", https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20141167, NULL, NULL, SW_SHOWNORMAL);
ShellExecute(handle, "open", https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20141167 , NULL, NULL, SW_SHOWNORMAL);

Perhaps I got it right this time.
See the 2nd question at:

http://www.microsoft.com/msj/defaultframe.asp?page=/msj/1297/c++1297.htm&nav=/msj/1297/newnav.htm

Here, there is a CStaticLink class described that enhances the MFC CStatic control to do what I think you want to do.  It seem you are using Borland and their "label" control which I think is about the same as CStatic.  I'm sure the code will need to be a bit different but the concept should be similar.
ASKER CERTIFIED SOLUTION
Avatar of cyprus106
cyprus106

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial