Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to direct to a website in my mfc dialog how to do that?
Posted
Updated 15-Mar-12 23:01pm
v3

Create an image using the hyper link and load the button with the newly created image. Then you can use ::ShellExecute(NULL,NULL,L"www.google.co.in",NULL,NULL,SW_SHOWNORMAL);
to follow the hyper link.
 
Share this answer
 
Comments
chaiein 16-Mar-12 3:23am    
using hyperlink means should i use sysLink?
chaiein 16-Mar-12 3:24am    
can please give me more information on this procedure?.
chaiein 16-Mar-12 4:13am    
I need to know the exact procedure of this or link.
Chandrasekharan P 16-Mar-12 4:25am    
did you try using shellexecute?
chaiein 16-Mar-12 4:39am    
ya i tried as below
void CDemoDlg::OnNMClickSyslink1(NMHDR *pNMHDR, LRESULT *pResult)
{


ShellExecute(NULL,NULL,"www.google.co.in",NULL,NULL,SW_SHOWNORMAL);


*pResult = 0;
}

but it does not show the dialog only
C++
void  CDemoDlg::OnBnClickedWebsite
{
	
	
       ShellExecute(NULL,NULL,"www.google.co.in",NULL,NULL,SW_SHOWNORMAL);
 }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900