如何使网站链接指向MFC中的按钮? [英] How to give website link to a button in mfc?

查看:82
本文介绍了如何使网站链接指向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);
 }


这篇关于如何使网站链接指向MFC中的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆