|
-
October 20th, 1999, 02:44 AM
#1
Make an internet link in the GUI
How to make an internet link in the GUI by using VC++.
Lets say I want to link the user to certain web site, when he/she click an button or a link.
TY
-
October 20th, 1999, 02:56 AM
#2
Re: Make an internet link in the GUI
Make some text control or any actveX control to receive click event.
e.g.
www.microsoft.com
and in the click event mapping write the code to shell execute the Internet explorer or Netscape Navigator with command line parameter as your website address.
for this you have to use
ShellExecute() API
best luck.
The bug is Human, to debug it, is divine !!
-
October 20th, 1999, 02:58 AM
#3
Re: Make an internet link in the GUI
Hi check this code:
void CMyClass::OnAnyButton()
{
ShellExecute(NULL,"open","www.codeguru.com",NULL,NULL,SW_MAXIMIZE);
}
HTH
kishk91
[email protected]
http://www.path.co.il
ICQ: 13610258
-
October 20th, 1999, 03:04 AM
#4
Re: Make an internet link in the GUI
Hi,
For button create command handler like this:
ShellExecute(NULL, "open", "http://www.codeguru.com",NULL, NULL,SW_SHOWNORMAL);
Good luck,
Oleg.
-
October 20th, 1999, 03:37 AM
#5
Re: Make an internet link in the GUI
If you have a hunt through the code samples on CodeGuru, you will find some hyperlink classes which add proper hyperlink-look links. They are configurable and make it look like the real thing.
The search facility should help to get to those samples quicker.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|