|
|
@@ -1035,7 +1035,7 @@ void CMainWnd::UpdateGongnengDaohang()
|
|
|
newOption->SetNormalImage(L"file='main_jiaoban.png' source='0,0,50,50' dest='25,13,75,63'");
|
|
|
newOption->SetSelectedImage(L"file='main_jiaoban_select.png' source='0,0,50,50' dest='25,13,75,63'");
|
|
|
}
|
|
|
- else if (curName == "shezhi")
|
|
|
+ else if (curName == "setting")
|
|
|
{
|
|
|
newOption->SetName(L"main_setting");
|
|
|
newOption->SetText(L"设置");
|
|
|
@@ -1070,7 +1070,7 @@ void CMainWnd::UpdateGongnengDaohang()
|
|
|
else if (curName == "zhengcan")
|
|
|
{
|
|
|
newOption->SetName(L"main_zhengcan");
|
|
|
- newOption->SetText(L"正餐");
|
|
|
+ newOption->SetText(L"桌台");
|
|
|
|
|
|
newOption->SetNormalImage(L"file='main_zhengcan.png' source='0,0,50,50' dest='25,13,75,63'");
|
|
|
newOption->SetSelectedImage(L"file='main_zhengcan_select.png' source='0,0,50,50' dest='25,13,75,63'");
|
|
|
@@ -1165,7 +1165,7 @@ void CMainWnd::SwitchPageByName(std::wstring name)
|
|
|
}
|
|
|
else if (name == _T("main_setting"))
|
|
|
{
|
|
|
- this->SwitchPage(SHEZHI);
|
|
|
+ this->SwitchPage(SETTING);
|
|
|
}
|
|
|
else if (name == L"main_gengduo")
|
|
|
{
|
|
|
@@ -1211,20 +1211,26 @@ void CMainWnd::SwitchPageByName(std::wstring name)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (m_curOption != NULL)
|
|
|
+ {
|
|
|
+ m_curOption->SetBkColor(0x00000000);
|
|
|
+ m_curOption->Selected(false, false);
|
|
|
+ }
|
|
|
+
|
|
|
if (is_found == true)
|
|
|
{
|
|
|
//新的跳转属于常用操作里面的
|
|
|
- m_curOption->SetBkColor(0x00000000);
|
|
|
- layout->GetItemAt(index)->SetBkColor(0xFF3CB371);
|
|
|
+ COptionUI* op = static_cast<COptionUI*>(layout->GetItemAt(index));
|
|
|
+
|
|
|
+ op->SetBkColor(0xFF3CB371);
|
|
|
+ op->Selected(true, false);
|
|
|
|
|
|
m_curOptionName = name;
|
|
|
- m_curOption = static_cast<COptionUI*>(layout->GetItemAt(index));
|
|
|
+ m_curOption = op;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
//新的跳转不属于常用操作里面的
|
|
|
- m_curOption->SetBkColor(0x00000000);
|
|
|
-
|
|
|
m_curOptionName = L"";
|
|
|
m_curOption = NULL;
|
|
|
}
|
|
|
@@ -1268,7 +1274,7 @@ void CMainWnd::CreatePages()
|
|
|
CDialogBuilder builder;
|
|
|
CDialogBuilderCallbackEx cb;
|
|
|
pChildContainer = static_cast<CBasePageUI*>(builder.Create(_T("setting_page.xml"), (UINT)0, &cb, &m_pm));
|
|
|
- m_pages[SHEZHI] = pChildContainer;
|
|
|
+ m_pages[SETTING] = pChildContainer;
|
|
|
}
|
|
|
|
|
|
{
|