当前位置: 首页>>代码示例>>C++>>正文


C++ CDuiString::CompareNoCase方法代码示例

本文整理汇总了C++中CDuiString::CompareNoCase方法的典型用法代码示例。如果您正苦于以下问题:C++ CDuiString::CompareNoCase方法的具体用法?C++ CDuiString::CompareNoCase怎么用?C++ CDuiString::CompareNoCase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CDuiString的用法示例。


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

示例1: OnClick

void CMsgWnd::OnClick( TNotifyUI &msg )
{
    CDuiString sName = msg.pSender->GetName();
    sName.MakeLower();

    if( msg.pSender == m_pCloseBtn ) {
        Close(MSGID_CANCEL);
        return;
    }
    else if( msg.pSender == m_pMinBtn ) {
        SendMessage(WM_SYSCOMMAND, SC_MINIMIZE, 0);
        return;
    }
    else if( msg.pSender == m_pMaxBtn ) {
        SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE, 0);
        return;
    }
    else if( msg.pSender == m_pRestoreBtn ) {
        SendMessage(WM_SYSCOMMAND, SC_RESTORE, 0);
        return;
    }
    else if( msg.pSender == m_pMenuBtn ) {
    }
    else if(sName.CompareNoCase(_T("confirm_btn")) == 0)
    {
        Close(MSGID_OK);
    }
    else if(sName.CompareNoCase(_T("cancel_btn")) == 0)
    {
        Close(MSGID_CANCEL);
    }
}
开发者ID:muyuchl,项目名称:DuiLib_Ultimate,代码行数:32,代码来源:MsgWnd.cpp

示例2: OnReturn

void CMainWnd::OnReturn( TNotifyUI &msg )
{
	CDuiString sName = msg.pSender->GetName();
	sName.MakeLower();

	if(sName.CompareNoCase(_T("address_edit")) == 0) {
		AddressGo();
	}
	else if(sName.CompareNoCase(_T("search_edit")) == 0) {
		SearchGo();
	}
}
开发者ID:FJSDS,项目名称:DuiLib_Ultimate,代码行数:12,代码来源:MainWnd.cpp

示例3: OnTabClosed

void CMainWnd::OnTabClosed( TNotifyUI &msg )
{
	CDuiString sName = msg.pSender->GetName();
	sName.MakeLower();
	if(sName.CompareNoCase(_T("browsertab")) == 0) {
		CBrowserTab* pTab = (CBrowserTab*)msg.pSender;
		vector<TabInfo*>::iterator it = find_if( m_vTabs.begin(), m_vTabs.end(), tab_finder(pTab));
		if(it != m_vTabs.end()) {
			TabInfo* pInfo = *it;
			if(pInfo != NULL) {
				if(m_vTabs.size() > 1) {
					m_pBrowserTabBody->Remove(pInfo->pWebBrowser);
					delete pInfo;
					pInfo = NULL;
					m_vTabs.erase(it);
					m_pBrowserTabBar->CloseTab(pTab);
				}
				else {
					lstrcpy(pInfo->szUrl, sHomePage);
					lstrcpy(pInfo->szTitle, sHomePage);
					pInfo->pWebBrowser->Navigate2(sHomePage);
				}
			}
		}
	}
}
开发者ID:FJSDS,项目名称:DuiLib_Ultimate,代码行数:26,代码来源:MainWnd.cpp

示例4: OnTabIndexChanged

void CMainWnd::OnTabIndexChanged( TNotifyUI &msg )
{
	CDuiString sName = msg.pSender->GetName();
	sName.MakeLower();
	if(sName.CompareNoCase(_T("browsertab")) == 0) {
		int nCurIndex = LOWORD(msg.lParam);
		int nIndex = HIWORD(msg.lParam);
		m_pBrowserTabBody->SetAutoDestroy(false);
		CControlUI* pWeb = m_pBrowserTabBody->GetItemAt(nCurIndex);
		m_pBrowserTabBody->Remove(pWeb);
		m_pBrowserTabBody->AddAt(pWeb, nIndex);
		m_pBrowserTabBody->SetAutoDestroy(true);
		m_pBrowserTabBody->SelectItem(pWeb);
	}
}
开发者ID:FJSDS,项目名称:DuiLib_Ultimate,代码行数:15,代码来源:MainWnd.cpp

示例5: OnClick

void CMainWnd::OnClick( TNotifyUI &msg )
{
	CDuiString sName = msg.pSender->GetName();
	sName.MakeLower();

	if( msg.pSender == m_pCloseBtn ) {
		PostQuitMessage(0);
		return; 
	}
	else if( msg.pSender == m_pMinBtn ) { 
		SendMessage(WM_SYSCOMMAND, SC_MINIMIZE, 0); return; }
	else if( msg.pSender == m_pMaxBtn ) { 
		SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE, 0); return; }
	else if( msg.pSender == m_pRestoreBtn ) { 
		SendMessage(WM_SYSCOMMAND, SC_RESTORE, 0); return; }
	else if( msg.pSender == m_pMenuBtn ) {
	}
	else if(sName.CompareNoCase(_T("newtab")) == 0)
	{
		CreateNewTabAndGo(NULL);
	}
	else if(sName.CompareNoCase(_T("address_go")) == 0)
	{
		AddressGo();
	}
	else if(sName.CompareNoCase(_T("search_go")) == 0) {
		SearchGo();
	}
	else if(sName.CompareNoCase(_T("back_btn")) == 0) {
		Back();
	}
	else if(sName.CompareNoCase(_T("forward_btn")) == 0) {
		Forward();
	}
	else if(sName.CompareNoCase(_T("refresh_btn")) == 0) {
		Refresh();
	}
	else if(sName.CompareNoCase(_T("home_go")) == 0) {
		Home();
	}
	else if(sName.CompareNoCase(_T("qq_btn")) == 0)
	{
		CreateNewTabAndGo(_T("tencent://Message/?Uin=656067418&Menu=yes"));
	}
}
开发者ID:FJSDS,项目名称:DuiLib_Ultimate,代码行数:45,代码来源:MainWnd.cpp

示例6: OnSelectChanged

void CMainWnd::OnSelectChanged( TNotifyUI &msg )
{
	CDuiString sName = msg.pSender->GetName();
	sName.MakeLower();
	if(sName.CompareNoCase(_T("browsertab")) == 0) {
		CBrowserTab* pTab = (CBrowserTab*)msg.pSender;
		int nIndex = m_pBrowserTabBar->GetItemIndex(msg.pSender);
		m_pBrowserTabBody->SelectItem(nIndex);
		vector<TabInfo*>::iterator it = find_if( m_vTabs.begin(), m_vTabs.end(), tab_finder(pTab));
		if(it != m_vTabs.end()) {
			TabInfo* pInfo = *it;
			if(pInfo != NULL) {
				m_pAddressEdit->SetText(pInfo->szUrl);
			}
		}
	}
}
开发者ID:FJSDS,项目名称:DuiLib_Ultimate,代码行数:17,代码来源:MainWnd.cpp

示例7: OnClick

void CMainWnd::OnClick( TNotifyUI &msg )
{
	CDuiString sName = msg.pSender->GetName();
	sName.MakeLower();

	if( msg.pSender == m_pCloseBtn ) {
		PostQuitMessage(0);
		return; 
	}
	else if( msg.pSender == m_pMinBtn ) { 
		SendMessage(WM_SYSCOMMAND, SC_MINIMIZE, 0); return; }
	else if( msg.pSender == m_pMaxBtn ) { 
		SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE, 0); return; }
	else if( msg.pSender == m_pRestoreBtn ) { 
		SendMessage(WM_SYSCOMMAND, SC_RESTORE, 0); return; }
	else if( msg.pSender == m_pMenuBtn ) {
	}
	else if(sName.CompareNoCase(_T("homepage_btn")) == 0)
	{
		ShellExecute(NULL, _T("open"), _T("https://github.com/duisharp"), NULL, NULL, SW_SHOW);
	}
}
开发者ID:FJSDS,项目名称:DuiLib_Ultimate,代码行数:22,代码来源:MainWnd.cpp


注:本文中的CDuiString::CompareNoCase方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。