本文整理汇总了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);
}
}
示例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();
}
}
示例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);
}
}
}
}
}
示例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);
}
}
示例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"));
}
}
示例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);
}
}
}
}
示例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);
}
}