本文整理汇总了C++中CDuiString::MakeLower方法的典型用法代码示例。如果您正苦于以下问题:C++ CDuiString::MakeLower方法的具体用法?C++ CDuiString::MakeLower怎么用?C++ CDuiString::MakeLower使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDuiString
的用法示例。
在下文中一共展示了CDuiString::MakeLower方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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);
}
}
}
}
}
示例2: 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);
}
}
示例3: IsInStaticControl
BOOL WindowImplBase::IsInStaticControl(CControlUI *pControl)
{
BOOL bRet = FALSE;
if (!pControl)
{
return bRet;
}
CDuiString strClassName;
std::vector<CDuiString> vctStaticName;
strClassName = pControl->GetClass();
strClassName.MakeLower();
vctStaticName.push_back(_T("controlui"));
vctStaticName.push_back(_T("textui"));
vctStaticName.push_back(_T("labelui"));
vctStaticName.push_back(_T("containerui"));
vctStaticName.push_back(_T("horizontallayoutui"));
vctStaticName.push_back(_T("verticallayoutui"));
vctStaticName.push_back(_T("tablayoutui"));
vctStaticName.push_back(_T("childlayoutui"));
vctStaticName.push_back(_T("dialoglayoutui"));
vctStaticName.push_back(_T("progresscontainerui"));
std::vector<CDuiString>::iterator it = std::find(vctStaticName.begin(), vctStaticName.end(), strClassName);
if (vctStaticName.end() != it)
{
CControlUI* pParent = pControl->GetParent();
while (pParent)
{
strClassName = pParent->GetClass();
strClassName.MakeLower();
it = std::find(vctStaticName.begin(), vctStaticName.end(), strClassName);
if (vctStaticName.end() == it)
{
return bRet;
}
pParent = pParent->GetParent();
}
bRet = TRUE;
}
return bRet;
}
示例4: 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();
}
}
示例5: 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);
}
}
示例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("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"));
}
}
示例8: 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);
}
}
示例9: RegistControl
void CControlFactory::RegistControl(CDuiString strClassName, CreateClass pFunc)
{
strClassName.MakeLower();
m_mapControl.insert(MAP_DUI_CTRATECLASS::value_type(strClassName, pFunc));
}
示例10: OnItemSelect
void CMainWnd::OnItemSelect( TNotifyUI &msg )
{
CDuiString sName = msg.pSender->GetName();
sName.MakeLower();
}