如何使网站链接指向MFC中的按钮?

问题描述:

我想在我的mfc对话框中定向到网站该怎么做?

I want to direct to a website in my mfc dialog how to do that?

使用超级链接创建图像并使用新加载按钮创建的图像.然后,您可以使用:: ShellExecute(NULL,NULL,L"www.google.co.in",NULL,NULL,SW_SHOWNORMAL);
跟随超链接.
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.


void  CDemoDlg::OnBnClickedWebsite
{
	
	
       ShellExecute(NULL,NULL,"www.google.co.in",NULL,NULL,SW_SHOWNORMAL);
 }