|
|
@@ -335,77 +335,92 @@ void CSystemSettingWnd::Init()
|
|
|
CEditUI* ip_edit = static_cast<CEditUI*>(m_pm.FindControl(_T("dayinji_setting_wangkou_ip")));
|
|
|
ip_edit->SetText(CLewaimaiString::UTF8ToUnicode(system_setting_dayinji_wangkou_ip).c_str());
|
|
|
|
|
|
- //开始收款设置
|
|
|
- CCheckBoxUI* kaijiqidong = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_kaijiqidong"));
|
|
|
- if (CSystem::IsAutoStart())
|
|
|
- {
|
|
|
- kaijiqidong->SetCheck(true);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- kaijiqidong->SetCheck(false);
|
|
|
- }
|
|
|
-
|
|
|
- std::string shoukuan_setting_fubiao = CSetting::GetParam("shoukuan_setting_fubiao");
|
|
|
- CCheckBoxUI* fubiao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_fubiao"));
|
|
|
- if (shoukuan_setting_fubiao == "1")
|
|
|
- {
|
|
|
- fubiao->SetCheck(true);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- fubiao->SetCheck(false);
|
|
|
- }
|
|
|
-
|
|
|
- CCheckBoxUI* yuyinbobao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_yuyinbobao"));
|
|
|
- std::string shoukuan_setting_yuyinbobao = CSetting::GetParam("shoukuan_setting_yuyinbobao");
|
|
|
- if (shoukuan_setting_yuyinbobao == "1")
|
|
|
- {
|
|
|
- yuyinbobao->SetCheck(true);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- yuyinbobao->SetCheck(false);
|
|
|
- }
|
|
|
-
|
|
|
- CCheckBoxUI* mianqueren = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_mianqueren"));
|
|
|
- std::string shoukuan_setting_mianqueren = CSetting::GetParam("shoukuan_setting_mianqueren");
|
|
|
- if (shoukuan_setting_mianqueren == "1")
|
|
|
- {
|
|
|
- mianqueren->SetCheck(true);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- mianqueren->SetCheck(false);
|
|
|
- }
|
|
|
-
|
|
|
- CCheckBoxUI* is_http_proxy = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_isdaili"));
|
|
|
- std::string http_is_proxy = CSetting::GetParam("http_is_proxy");
|
|
|
- if (http_is_proxy == "1")
|
|
|
- {
|
|
|
- is_http_proxy->SetCheck(true);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- is_http_proxy->SetCheck(false);
|
|
|
- }
|
|
|
-
|
|
|
- CEditUI* httpIpEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_ip"));
|
|
|
- httpIpEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_ip")).c_str());
|
|
|
-
|
|
|
- CEditUI* httpPortEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_port"));
|
|
|
- httpPortEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_port")).c_str());
|
|
|
-
|
|
|
- CEditUI* httpUsernameEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_username"));
|
|
|
- httpUsernameEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_username")).c_str());
|
|
|
-
|
|
|
- CEditUI* httpPasswordEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_password"));
|
|
|
- httpPasswordEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_password")).c_str());
|
|
|
+ //开始收款设置
|
|
|
+ CCheckBoxUI* kaijiqidong = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_kaijiqidong"));
|
|
|
+ if(CSystem::IsAutoStart())
|
|
|
+ {
|
|
|
+ kaijiqidong->SetCheck(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ kaijiqidong->SetCheck(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ std::string shoukuan_setting_fubiao = CSetting::GetParam("shoukuan_setting_fubiao");
|
|
|
+ CCheckBoxUI* fubiao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_fubiao"));
|
|
|
+ if(shoukuan_setting_fubiao == "1")
|
|
|
+ {
|
|
|
+ fubiao->SetCheck(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ fubiao->SetCheck(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ CCheckBoxUI* yuyinbobao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_yuyinbobao"));
|
|
|
+ std::string shoukuan_setting_yuyinbobao = CSetting::GetParam("shoukuan_setting_yuyinbobao");
|
|
|
+ if(shoukuan_setting_yuyinbobao == "1")
|
|
|
+ {
|
|
|
+ yuyinbobao->SetCheck(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ yuyinbobao->SetCheck(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ CCheckBoxUI* mianqueren = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_mianqueren"));
|
|
|
+ std::string shoukuan_setting_mianqueren = CSetting::GetParam("shoukuan_setting_mianqueren");
|
|
|
+ if(shoukuan_setting_mianqueren == "1")
|
|
|
+ {
|
|
|
+ mianqueren->SetCheck(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ mianqueren->SetCheck(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ CCheckBoxUI* is_http_proxy = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_isdaili"));
|
|
|
+ std::string http_is_proxy = CSetting::GetParam("http_is_proxy");
|
|
|
+ if(http_is_proxy == "1")
|
|
|
+ {
|
|
|
+ is_http_proxy->SetCheck(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ is_http_proxy->SetCheck(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ CEditUI* httpIpEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_ip"));
|
|
|
+ httpIpEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_ip")).c_str());
|
|
|
+
|
|
|
+ CEditUI* httpPortEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_port"));
|
|
|
+ httpPortEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_port")).c_str());
|
|
|
+
|
|
|
+ CEditUI* httpUsernameEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_username"));
|
|
|
+ httpUsernameEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_username")).c_str());
|
|
|
+
|
|
|
+ CEditUI* httpPasswordEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_password"));
|
|
|
+ httpPasswordEdit->SetText(CLewaimaiString::UTF8ToUnicode(CSetting::GetParam("http_proxy_password")).c_str());
|
|
|
|
|
|
//初始化快捷键的展示
|
|
|
UINT shoukuan_mod = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_shoukuan_mod").c_str());
|
|
|
UINT shoukuan_vk = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_shoukuan_vk").c_str());
|
|
|
|
|
|
+ UINT tuikuan_mod = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_tuikuan_mod").c_str());
|
|
|
+ UINT tuikuan_vk = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_tuikuan_vk").c_str());
|
|
|
+
|
|
|
+ UINT jiaoyijilu_mod = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_jiaoyijilu_mod").c_str());
|
|
|
+ UINT jiaoyijilu_vk = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_jiaoyijilu_vk").c_str());
|
|
|
+
|
|
|
+ UINT jiaoyihuizong_mod = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_jiaoyihuizong_mod").c_str());
|
|
|
+ UINT jiaoyihuizong_vk = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_jiaoyihuizong_vk").c_str());
|
|
|
+
|
|
|
+ UINT jiaoban_mod = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_jiaoban_mod").c_str());
|
|
|
+ UINT jiaoban_vk = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_jiaoban_vk").c_str());
|
|
|
+
|
|
|
+ UINT shezhi_mod = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_shezhi_mod").c_str());
|
|
|
+ UINT shezhi_vk = (UINT)atoi(CSetting::GetParam("system_setting_kuaijiejian_shezhi_vk").c_str());
|
|
|
+
|
|
|
CDuiString shoukuan_info;
|
|
|
if(shoukuan_mod == 2)
|
|
|
{
|
|
|
@@ -420,8 +435,93 @@ void CSystemSettingWnd::Init()
|
|
|
shoukuan_info.Format(_T("SHIFT + %c"), shoukuan_vk);
|
|
|
}
|
|
|
|
|
|
- CButtonUI* jiesuan_edit = static_cast<CButtonUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiesuan_btn")));
|
|
|
- jiesuan_edit->SetText(shoukuan_info);
|
|
|
+ CButtonUI* shoukuan_edit = static_cast<CButtonUI*>(m_pm.FindControl(_T("kuaijiejian_setting_shoukuan_btn")));
|
|
|
+ shoukuan_edit->SetText(shoukuan_info);
|
|
|
+
|
|
|
+ CDuiString tuikuan_info;
|
|
|
+ if(tuikuan_mod == 2)
|
|
|
+ {
|
|
|
+ tuikuan_info.Format(_T("CTRL + %c"), tuikuan_vk);
|
|
|
+ }
|
|
|
+ else if(tuikuan_mod == 1)
|
|
|
+ {
|
|
|
+ tuikuan_info.Format(_T("ALT + %c"), tuikuan_vk);
|
|
|
+ }
|
|
|
+ else if(tuikuan_mod == 4)
|
|
|
+ {
|
|
|
+ tuikuan_info.Format(_T("SHIFT + %c"), tuikuan_vk);
|
|
|
+ }
|
|
|
+
|
|
|
+ CButtonUI* tuikuan_edit = static_cast<CButtonUI*>(m_pm.FindControl(_T("kuaijiejian_setting_tuikuan_btn")));
|
|
|
+ tuikuan_edit->SetText(tuikuan_info);
|
|
|
+
|
|
|
+ CDuiString jiaoyijilu_info;
|
|
|
+ if(jiaoyijilu_mod == 2)
|
|
|
+ {
|
|
|
+ jiaoyijilu_info.Format(_T("CTRL + %c"), jiaoyijilu_vk);
|
|
|
+ }
|
|
|
+ else if(jiaoyijilu_mod == 1)
|
|
|
+ {
|
|
|
+ jiaoyijilu_info.Format(_T("ALT + %c"), jiaoyijilu_vk);
|
|
|
+ }
|
|
|
+ else if(jiaoyijilu_mod == 4)
|
|
|
+ {
|
|
|
+ jiaoyijilu_info.Format(_T("SHIFT + %c"), jiaoyijilu_vk);
|
|
|
+ }
|
|
|
+
|
|
|
+ CButtonUI* jiaoyijilu_edit = static_cast<CButtonUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiaoyijilu_btn")));
|
|
|
+ jiaoyijilu_edit->SetText(jiaoyijilu_info);
|
|
|
+
|
|
|
+ CDuiString jiaoyihuizong_info;
|
|
|
+ if(jiaoyihuizong_mod == 2)
|
|
|
+ {
|
|
|
+ jiaoyihuizong_info.Format(_T("CTRL + %c"), jiaoyihuizong_vk);
|
|
|
+ }
|
|
|
+ else if(jiaoyihuizong_mod == 1)
|
|
|
+ {
|
|
|
+ jiaoyihuizong_info.Format(_T("ALT + %c"), jiaoyihuizong_vk);
|
|
|
+ }
|
|
|
+ else if(jiaoyihuizong_mod == 4)
|
|
|
+ {
|
|
|
+ jiaoyihuizong_info.Format(_T("SHIFT + %c"), jiaoyihuizong_vk);
|
|
|
+ }
|
|
|
+
|
|
|
+ CButtonUI* jiaoyihuizong_edit = static_cast<CButtonUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiaoyihuizong_btn")));
|
|
|
+ jiaoyihuizong_edit->SetText(jiaoyihuizong_info);
|
|
|
+
|
|
|
+ CDuiString jiaoban_info;
|
|
|
+ if(jiaoban_mod == 2)
|
|
|
+ {
|
|
|
+ jiaoban_info.Format(_T("CTRL + %c"), jiaoban_vk);
|
|
|
+ }
|
|
|
+ else if(jiaoban_mod == 1)
|
|
|
+ {
|
|
|
+ jiaoban_info.Format(_T("ALT + %c"), jiaoban_vk);
|
|
|
+ }
|
|
|
+ else if(jiaoban_mod == 4)
|
|
|
+ {
|
|
|
+ jiaoban_info.Format(_T("SHIFT + %c"), jiaoban_vk);
|
|
|
+ }
|
|
|
+
|
|
|
+ CButtonUI* jiaoban_edit = static_cast<CButtonUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiaoban_btn")));
|
|
|
+ jiaoban_edit->SetText(jiaoban_info);
|
|
|
+
|
|
|
+ CDuiString shezhi_info;
|
|
|
+ if(shezhi_mod == 2)
|
|
|
+ {
|
|
|
+ shezhi_info.Format(_T("CTRL + %c"), shezhi_vk);
|
|
|
+ }
|
|
|
+ else if(shezhi_mod == 1)
|
|
|
+ {
|
|
|
+ shezhi_info.Format(_T("ALT + %c"), shezhi_vk);
|
|
|
+ }
|
|
|
+ else if(shezhi_mod == 4)
|
|
|
+ {
|
|
|
+ shezhi_info.Format(_T("SHIFT + %c"), shezhi_vk);
|
|
|
+ }
|
|
|
+
|
|
|
+ CButtonUI* shezhi_edit = static_cast<CButtonUI*>(m_pm.FindControl(_T("kuaijiejian_setting_shezhi_btn")));
|
|
|
+ shezhi_edit->SetText(shezhi_info);
|
|
|
|
|
|
//关于我们
|
|
|
CLabelUI* version = static_cast<CLabelUI*>(m_pm.FindControl(_T("about_version")));
|
|
|
@@ -462,8 +562,8 @@ LRESULT CSystemSettingWnd::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOO
|
|
|
|
|
|
LRESULT CSystemSettingWnd::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
|
|
{
|
|
|
- bHandled = FALSE;
|
|
|
- return 0;
|
|
|
+ bHandled = FALSE;
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
@@ -471,17 +571,17 @@ LRESULT CSystemSettingWnd::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL
|
|
|
**/
|
|
|
LRESULT CSystemSettingWnd::OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
|
|
{
|
|
|
- bHandled = FALSE;
|
|
|
- return 0;
|
|
|
+ bHandled = FALSE;
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
LRESULT CSystemSettingWnd::OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
|
|
{
|
|
|
- if (::IsIconic(*this))
|
|
|
- {
|
|
|
- bHandled = FALSE;
|
|
|
- }
|
|
|
- return (wParam == 0) ? TRUE : FALSE;
|
|
|
+ if(::IsIconic(*this))
|
|
|
+ {
|
|
|
+ bHandled = FALSE;
|
|
|
+ }
|
|
|
+ return (wParam == 0) ? TRUE : FALSE;
|
|
|
}
|
|
|
|
|
|
LRESULT CSystemSettingWnd::OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
|
|
@@ -537,7 +637,7 @@ LRESULT CSystemSettingWnd::OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BO
|
|
|
if(wParam != VK_CONTROL && wParam != VK_MENU && wParam != VK_SHIFT)
|
|
|
{
|
|
|
//这个情况,按的是字母键之类的
|
|
|
- CDuiString duiText;
|
|
|
+ CDuiString duiText;
|
|
|
|
|
|
if(VK_F1 <= wParam && wParam <= VK_F12)
|
|
|
{
|
|
|
@@ -571,9 +671,34 @@ LRESULT CSystemSettingWnd::OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BO
|
|
|
//到这里来设置成功了,做展示
|
|
|
if(m_kuaijiejian_type == 1)
|
|
|
{
|
|
|
- CEditUI* focusEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiesuan_btn")));
|
|
|
+ CEditUI* focusEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("kuaijiejian_setting_shoukuan_btn")));
|
|
|
focusEdit->SetText(duiText);
|
|
|
}
|
|
|
+ else if (m_kuaijiejian_type == 2)
|
|
|
+ {
|
|
|
+ CEditUI* focusEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("kuaijiejian_setting_tuikuan_btn")));
|
|
|
+ focusEdit->SetText(duiText);
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 3)
|
|
|
+ {
|
|
|
+ CEditUI* focusEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiaoyijilu_btn")));
|
|
|
+ focusEdit->SetText(duiText);
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 4)
|
|
|
+ {
|
|
|
+ CEditUI* focusEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiaoyihuizong_btn")));
|
|
|
+ focusEdit->SetText(duiText);
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 5)
|
|
|
+ {
|
|
|
+ CEditUI* focusEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("kuaijiejian_setting_jiaobao_btn")));
|
|
|
+ focusEdit->SetText(duiText);
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 6)
|
|
|
+ {
|
|
|
+ CEditUI* focusEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("kuaijiejian_setting_shezhi_btn")));
|
|
|
+ focusEdit->SetText(duiText);
|
|
|
+ }
|
|
|
|
|
|
m_vk = wParam;
|
|
|
m_isSet = true;
|
|
|
@@ -621,8 +746,36 @@ LRESULT CSystemSettingWnd::OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BO
|
|
|
if(wParam != VK_CONTROL && wParam != VK_MENU && wParam != VK_SHIFT)
|
|
|
{
|
|
|
//准备开始注册热键了
|
|
|
- CSetting::SetParam("system_setting_kuaijiejian_shoukuan_mod", to_string(m_mod));
|
|
|
- CSetting::SetParam("system_setting_kuaijiejian_shoukuan_vk", to_string(m_vk));
|
|
|
+ if (m_kuaijiejian_type == 1)
|
|
|
+ {
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_shoukuan_mod", to_string(m_mod));
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_shoukuan_vk", to_string(m_vk));
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 2)
|
|
|
+ {
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_tuikuan_mod", to_string(m_mod));
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_tuikuan_vk", to_string(m_vk));
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 3)
|
|
|
+ {
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_jiaoyijilu_mod", to_string(m_mod));
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_jiaoyijilu_vk", to_string(m_vk));
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 4)
|
|
|
+ {
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_jiaoyihuizong_mod", to_string(m_mod));
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_jiaoyihuizong_vk", to_string(m_vk));
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 5)
|
|
|
+ {
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_jiaoban_mod", to_string(m_mod));
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_jiaoban_vk", to_string(m_vk));
|
|
|
+ }
|
|
|
+ else if (m_kuaijiejian_type == 6)
|
|
|
+ {
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_shezhi_mod", to_string(m_mod));
|
|
|
+ CSetting::SetParam("system_setting_kuaijiejian_shezhi_vk", to_string(m_vk));
|
|
|
+ }
|
|
|
|
|
|
m_valueWnd->UpdateRegisterHotKey();
|
|
|
}
|
|
|
@@ -645,12 +798,12 @@ LRESULT CSystemSettingWnd::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam
|
|
|
case WM_CREATE:
|
|
|
lRes = OnCreate(uMsg, wParam, lParam, bHandled);
|
|
|
break;
|
|
|
- case WM_CLOSE:
|
|
|
- lRes = OnClose(uMsg, wParam, lParam, bHandled);
|
|
|
- break;
|
|
|
- case WM_DESTROY:
|
|
|
- lRes = OnDestroy(uMsg, wParam, lParam, bHandled);
|
|
|
- break;
|
|
|
+ case WM_CLOSE:
|
|
|
+ lRes = OnClose(uMsg, wParam, lParam, bHandled);
|
|
|
+ break;
|
|
|
+ case WM_DESTROY:
|
|
|
+ lRes = OnDestroy(uMsg, wParam, lParam, bHandled);
|
|
|
+ break;
|
|
|
case WM_NCACTIVATE:
|
|
|
lRes = OnNcActivate(uMsg, wParam, lParam, bHandled);
|
|
|
break;
|
|
|
@@ -715,7 +868,7 @@ void CSystemSettingWnd::HandleClickMsg(TNotifyUI& msg)
|
|
|
|
|
|
if(senderName == _T("system_setting_closebtn"))
|
|
|
{
|
|
|
- m_valueWnd->CloseSystemSetting();
|
|
|
+ m_valueWnd->CloseSystemSetting();
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -898,89 +1051,89 @@ void CSystemSettingWnd::HandleClickMsg(TNotifyUI& msg)
|
|
|
{
|
|
|
m_valueWnd->PrintTest();
|
|
|
}
|
|
|
- else if (senderName == _T("shoukuan_setting_save"))
|
|
|
- {
|
|
|
- //点击了收款设置的保存按钮
|
|
|
-
|
|
|
- //先处理开机启动
|
|
|
- CCheckBoxUI* kaijiqidong = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_kaijiqidong"));
|
|
|
- if (kaijiqidong->IsSelected())
|
|
|
- {
|
|
|
- CSystem::autostart();
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- CSystem::cancelAutoStart();
|
|
|
- }
|
|
|
-
|
|
|
- //再处理浮标
|
|
|
- CCheckBoxUI* fubiao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_fubiao"));
|
|
|
- if (fubiao->IsSelected())
|
|
|
- {
|
|
|
- m_valueWnd->ShowWindow(true);
|
|
|
-
|
|
|
- CSetting::SetParam("shoukuan_setting_fubiao", "1");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- m_valueWnd->ShowWindow(false);
|
|
|
-
|
|
|
- CSetting::SetParam("shoukuan_setting_fubiao", "0");
|
|
|
- }
|
|
|
-
|
|
|
- //处理语音播报
|
|
|
- CCheckBoxUI* yuyinbobao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_yuyinbobao"));
|
|
|
- if (yuyinbobao->IsSelected())
|
|
|
- {
|
|
|
- CSetting::SetParam("shoukuan_setting_yuyinbobao", "1");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- CSetting::SetParam("shoukuan_setting_yuyinbobao", "0");
|
|
|
- }
|
|
|
-
|
|
|
- //处理收款免确认
|
|
|
- CCheckBoxUI* mianqueren = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_mianqueren"));
|
|
|
- if (mianqueren->IsSelected())
|
|
|
- {
|
|
|
- CSetting::SetParam("shoukuan_setting_mianqueren", "1");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- CSetting::SetParam("shoukuan_setting_mianqueren", "0");
|
|
|
- }
|
|
|
-
|
|
|
- //Http代理相关
|
|
|
- CCheckBoxUI* is_http_proxy = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_isdaili"));
|
|
|
- if (is_http_proxy->IsSelected())
|
|
|
- {
|
|
|
- CSetting::SetParam("http_is_proxy", "1");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- CSetting::SetParam("http_is_proxy", "0");
|
|
|
- }
|
|
|
-
|
|
|
- CEditUI* httpIpEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_ip"));
|
|
|
- std::wstring http_proxy_ip = httpIpEdit->GetText();
|
|
|
- CSetting::SetParam("http_proxy_ip", CLewaimaiString::UnicodeToUTF8(http_proxy_ip));
|
|
|
-
|
|
|
- CEditUI* httpPortEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_port"));
|
|
|
- std::wstring http_proxy_port = httpPortEdit->GetText();
|
|
|
- CSetting::SetParam("http_proxy_port", CLewaimaiString::UnicodeToUTF8(http_proxy_port));
|
|
|
-
|
|
|
- CEditUI* httpUsernameEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_username"));
|
|
|
- std::wstring http_proxy_username = httpUsernameEdit->GetText();
|
|
|
- CSetting::SetParam("http_proxy_username", CLewaimaiString::UnicodeToUTF8(http_proxy_username));
|
|
|
-
|
|
|
- CEditUI* httpPassswordEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_password"));
|
|
|
- std::wstring http_proxy_password = httpPassswordEdit->GetText();
|
|
|
- CSetting::SetParam("http_proxy_password", CLewaimaiString::UnicodeToUTF8(http_proxy_password));
|
|
|
-
|
|
|
- //更新httt代理状态
|
|
|
- CZhipuziHttpClient::UpdateProxy();
|
|
|
- }
|
|
|
- else if(senderName == _T("kuaijiejian_setting_jiesuan_btn"))
|
|
|
+ else if(senderName == _T("shoukuan_setting_save"))
|
|
|
+ {
|
|
|
+ //点击了收款设置的保存按钮
|
|
|
+
|
|
|
+ //先处理开机启动
|
|
|
+ CCheckBoxUI* kaijiqidong = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_kaijiqidong"));
|
|
|
+ if(kaijiqidong->IsSelected())
|
|
|
+ {
|
|
|
+ CSystem::autostart();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ CSystem::cancelAutoStart();
|
|
|
+ }
|
|
|
+
|
|
|
+ //再处理浮标
|
|
|
+ CCheckBoxUI* fubiao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_fubiao"));
|
|
|
+ if(fubiao->IsSelected())
|
|
|
+ {
|
|
|
+ m_valueWnd->ShowWindow(true);
|
|
|
+
|
|
|
+ CSetting::SetParam("shoukuan_setting_fubiao", "1");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ m_valueWnd->ShowWindow(false);
|
|
|
+
|
|
|
+ CSetting::SetParam("shoukuan_setting_fubiao", "0");
|
|
|
+ }
|
|
|
+
|
|
|
+ //处理语音播报
|
|
|
+ CCheckBoxUI* yuyinbobao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_yuyinbobao"));
|
|
|
+ if(yuyinbobao->IsSelected())
|
|
|
+ {
|
|
|
+ CSetting::SetParam("shoukuan_setting_yuyinbobao", "1");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ CSetting::SetParam("shoukuan_setting_yuyinbobao", "0");
|
|
|
+ }
|
|
|
+
|
|
|
+ //处理收款免确认
|
|
|
+ CCheckBoxUI* mianqueren = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_mianqueren"));
|
|
|
+ if(mianqueren->IsSelected())
|
|
|
+ {
|
|
|
+ CSetting::SetParam("shoukuan_setting_mianqueren", "1");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ CSetting::SetParam("shoukuan_setting_mianqueren", "0");
|
|
|
+ }
|
|
|
+
|
|
|
+ //Http代理相关
|
|
|
+ CCheckBoxUI* is_http_proxy = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_isdaili"));
|
|
|
+ if(is_http_proxy->IsSelected())
|
|
|
+ {
|
|
|
+ CSetting::SetParam("http_is_proxy", "1");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ CSetting::SetParam("http_is_proxy", "0");
|
|
|
+ }
|
|
|
+
|
|
|
+ CEditUI* httpIpEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_ip"));
|
|
|
+ std::wstring http_proxy_ip = httpIpEdit->GetText();
|
|
|
+ CSetting::SetParam("http_proxy_ip", CLewaimaiString::UnicodeToUTF8(http_proxy_ip));
|
|
|
+
|
|
|
+ CEditUI* httpPortEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_port"));
|
|
|
+ std::wstring http_proxy_port = httpPortEdit->GetText();
|
|
|
+ CSetting::SetParam("http_proxy_port", CLewaimaiString::UnicodeToUTF8(http_proxy_port));
|
|
|
+
|
|
|
+ CEditUI* httpUsernameEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_username"));
|
|
|
+ std::wstring http_proxy_username = httpUsernameEdit->GetText();
|
|
|
+ CSetting::SetParam("http_proxy_username", CLewaimaiString::UnicodeToUTF8(http_proxy_username));
|
|
|
+
|
|
|
+ CEditUI* httpPassswordEdit = static_cast<CEditUI*>(m_pm.FindControl(L"shoukuan_setting_daili_password"));
|
|
|
+ std::wstring http_proxy_password = httpPassswordEdit->GetText();
|
|
|
+ CSetting::SetParam("http_proxy_password", CLewaimaiString::UnicodeToUTF8(http_proxy_password));
|
|
|
+
|
|
|
+ //更新httt代理状态
|
|
|
+ CZhipuziHttpClient::UpdateProxy();
|
|
|
+ }
|
|
|
+ else if(senderName == _T("kuaijiejian_setting_shoukuan_btn"))
|
|
|
{
|
|
|
m_kuaijiejian_type = 1;
|
|
|
|
|
|
@@ -988,10 +1141,50 @@ void CSystemSettingWnd::HandleClickMsg(TNotifyUI& msg)
|
|
|
m_vk = 0;
|
|
|
m_isSet = false;
|
|
|
}
|
|
|
- else if (senderName == L"system_setting_logout")
|
|
|
- {
|
|
|
- m_valueWnd->Logout();
|
|
|
- }
|
|
|
+ else if(senderName == _T("kuaijiejian_setting_tuikuan_btn"))
|
|
|
+ {
|
|
|
+ m_kuaijiejian_type = 2;
|
|
|
+
|
|
|
+ m_mod = 0;
|
|
|
+ m_vk = 0;
|
|
|
+ m_isSet = false;
|
|
|
+ }
|
|
|
+ else if(senderName == _T("kuaijiejian_setting_jiaoyijilu_btn"))
|
|
|
+ {
|
|
|
+ m_kuaijiejian_type = 3;
|
|
|
+
|
|
|
+ m_mod = 0;
|
|
|
+ m_vk = 0;
|
|
|
+ m_isSet = false;
|
|
|
+ }
|
|
|
+ else if(senderName == _T("kuaijiejian_setting_jiaoyihuizong_btn"))
|
|
|
+ {
|
|
|
+ m_kuaijiejian_type = 4;
|
|
|
+
|
|
|
+ m_mod = 0;
|
|
|
+ m_vk = 0;
|
|
|
+ m_isSet = false;
|
|
|
+ }
|
|
|
+ else if(senderName == _T("kuaijiejian_setting_jiaoban_btn"))
|
|
|
+ {
|
|
|
+ m_kuaijiejian_type = 5;
|
|
|
+
|
|
|
+ m_mod = 0;
|
|
|
+ m_vk = 0;
|
|
|
+ m_isSet = false;
|
|
|
+ }
|
|
|
+ else if(senderName == _T("kuaijiejian_setting_shezhi_btn"))
|
|
|
+ {
|
|
|
+ m_kuaijiejian_type = 6;
|
|
|
+
|
|
|
+ m_mod = 0;
|
|
|
+ m_vk = 0;
|
|
|
+ m_isSet = false;
|
|
|
+ }
|
|
|
+ else if(senderName == L"system_setting_logout")
|
|
|
+ {
|
|
|
+ m_valueWnd->Logout();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void CSystemSettingWnd::HandleSelectChangeMsg(TNotifyUI& msg)
|
|
|
@@ -1019,15 +1212,15 @@ void CSystemSettingWnd::HandleSelectChangeMsg(TNotifyUI& msg)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- else if (name == _T("system_setting_option_shoukuanshezhi"))
|
|
|
- {
|
|
|
- CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(m_pm.FindControl(_T("switch")));
|
|
|
+ else if(name == _T("system_setting_option_shoukuanshezhi"))
|
|
|
+ {
|
|
|
+ CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(m_pm.FindControl(_T("switch")));
|
|
|
|
|
|
- if (pControl && pControl->GetCurSel() != 2)
|
|
|
- {
|
|
|
- pControl->SelectItem(2);
|
|
|
- }
|
|
|
- }
|
|
|
+ if(pControl && pControl->GetCurSel() != 2)
|
|
|
+ {
|
|
|
+ pControl->SelectItem(2);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
else if(name == _T("system_setting_option_kuaijiejian"))
|
|
|
{
|