您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ wxLaunchDefaultBrowser函数代码示例

51自学网 2021-06-03 10:10:33
  C++
这篇教程C++ wxLaunchDefaultBrowser函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中wxLaunchDefaultBrowser函数的典型用法代码示例。如果您正苦于以下问题:C++ wxLaunchDefaultBrowser函数的具体用法?C++ wxLaunchDefaultBrowser怎么用?C++ wxLaunchDefaultBrowser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了wxLaunchDefaultBrowser函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: wxLaunchDefaultBrowser

/* MainWindow::onHTMLLinkClicked * Called when a link is clicked on the HTML Window, so that * external (http) links are opened in the default browser *******************************************************************/void MainWindow::onHTMLLinkClicked(wxEvent& e){	wxHtmlLinkEvent& ev = (wxHtmlLinkEvent&)e;	string href = ev.GetLinkInfo().GetHref();	if (href.StartsWith("http://"))		wxLaunchDefaultBrowser(ev.GetLinkInfo().GetHref());	else if (href.StartsWith("recent://"))	{		// Recent file		string rs = href.Right(1);		unsigned long index = 0;		rs.ToULong(&index);		index++;		panel_archivemanager->handleAction(S_FMT("aman_recent%lu", index));	}	else if (href.StartsWith("action://"))	{		// Action		if (href.EndsWith("open"))			theApp->doAction("aman_open");		else if (href.EndsWith("newwad"))			theApp->doAction("aman_newwad");		else if (href.EndsWith("newzip"))			theApp->doAction("aman_newzip");		else if (href.EndsWith("newmap"))			theApp->doAction("aman_newmap");		else if (href.EndsWith("reloadstartpage"))			createStartPage();	}	else		html_startpage->OnLinkClicked(ev.GetLinkInfo());}
开发者ID:jonrimmer,项目名称:SLADE,代码行数:38,


示例2: DisplayPgAdminHelp

void DisplayPgAdminHelp(const wxString &helpTopic){	static wxHelpControllerBase *helpCtl = 0;	static bool firstCall = true;	// Startup the main help system	if (firstCall)	{		firstCall = false;		wxString helpdir = docPath + wxT("/") + settings->GetCanonicalLanguageName();		if (!wxFile::Exists(helpdir + wxT("/pgadmin3.hhp")) &&#if defined(__WXMSW__) || wxUSE_LIBMSPACK		        !wxFile::Exists(helpdir + wxT("/pgadmin3.chm")) &&#endif		        !wxFile::Exists(helpdir + wxT("/pgadmin3.zip")))			helpdir = docPath + wxT("/en_US");#ifdef __WXMSW__#ifndef __WXDEBUG__		if (wxFile::Exists(helpdir + wxT("/pgadmin3.chm")))		{			helpCtl = new wxCHMHelpController();			helpCtl->Initialize(helpdir + wxT("/pgadmin3"));		}		else#endif#endif#if wxUSE_LIBMSPACK			if (wxFile::Exists(helpdir + wxT("/pgadmin3.chm")) ||			        wxFile::Exists(helpdir + wxT("/pgadmin3.hhp")) || wxFile::Exists(helpdir + wxT("/pgadmin3.zip")))#else			if (wxFile::Exists(helpdir + wxT("/pgadmin3.hhp")) || wxFile::Exists(helpdir + wxT("/pgadmin3.zip")))#endif			{				helpCtl = new wxHtmlHelpController();				helpCtl->Initialize(helpdir + wxT("/pgadmin3"));			}	}	wxString page;	int hashPos = helpTopic.Find('#');	if (hashPos < 0)		page = helpTopic + wxT(".html");	else		page = helpTopic.Left(hashPos) + wxT(".html") + helpTopic.Mid(hashPos);	if (helpCtl)	{		if (helpTopic == wxT("index.html"))			helpCtl->DisplayContents();		else			helpCtl->DisplaySection(page);	}	else	{		wxLaunchDefaultBrowser(page);	}}
开发者ID:swflb,项目名称:pgadmin3,代码行数:59,


万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。