clistbox获取选中值,同时打开iexplore

来源:互联网 发布:电脑日程提醒软件 编辑:程序博客网 时间:2024/05/24 23:11
void OnBnClickedBtnOpenUrl()
{
CString strIp;
int nSel = m_lv_search_result.GetCurSel();
if(nSel>=0){
m_lv_search_result.GetText(nSel, strIp);
}
else
{
MessageBox("请选择一行",0,MB_OK);
return;
}

CString str;

//打开ie进程

str.Format("start iexplore %s",strIp);
system(str);
}
0 0
原创粉丝点击