|
|
@@ -50,147 +50,51 @@ void CShoukuanPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
|
|
|
if (senderName == L"jianpan_1")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"1");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_1();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_2")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"2");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_2();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_3")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"3");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_3();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_4")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"4");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_4();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_5")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"5");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_5();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_6")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"6");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_6();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_7")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"7");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_7();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_8")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"8");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_8();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_9")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"9");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_9();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_0")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"0");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_0();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_dian")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L".");
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_dian();
|
|
|
}
|
|
|
else if (senderName == L"jianpan_qingkong")
|
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
- wstring wsReason = pContent->GetText();
|
|
|
-
|
|
|
- wsReason = L"0";
|
|
|
-
|
|
|
- pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
-
|
|
|
- UpdateJiesuanInfo();
|
|
|
+ this->Click_qingkong();
|
|
|
}
|
|
|
else if (senderName == L"diandan_jiesuan_zhifufangshi_weixinzhifu_btn")
|
|
|
{
|
|
|
@@ -303,6 +207,87 @@ void CShoukuanPageUI::HandleTextCapture(std::string content)
|
|
|
this->StartWeixinzhifuShoukuan(content);
|
|
|
}
|
|
|
|
|
|
+bool CShoukuanPageUI::HandleCustomMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
+{
|
|
|
+ if (uMsg == WM_KEYDOWN)
|
|
|
+ {
|
|
|
+ if (wParam == '1' || wParam == VK_NUMPAD1)
|
|
|
+ {
|
|
|
+ this->Click_1();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '2' || wParam == VK_NUMPAD2)
|
|
|
+ {
|
|
|
+ this->Click_2();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '3' || wParam == VK_NUMPAD3)
|
|
|
+ {
|
|
|
+ this->Click_3();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '4' || wParam == VK_NUMPAD4)
|
|
|
+ {
|
|
|
+ this->Click_4();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '5' || wParam == VK_NUMPAD5)
|
|
|
+ {
|
|
|
+ this->Click_5();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '6' || wParam == VK_NUMPAD6)
|
|
|
+ {
|
|
|
+ this->Click_6();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '7' || wParam == VK_NUMPAD7)
|
|
|
+ {
|
|
|
+ this->Click_7();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '8' || wParam == VK_NUMPAD8)
|
|
|
+ {
|
|
|
+ this->Click_8();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '9' || wParam == VK_NUMPAD9)
|
|
|
+ {
|
|
|
+ this->Click_9();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == '0' || wParam == VK_NUMPAD0)
|
|
|
+ {
|
|
|
+ this->Click_0();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == VK_DECIMAL)
|
|
|
+ {
|
|
|
+ this->Click_dian();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else if (wParam == VK_BACK)
|
|
|
+ {
|
|
|
+ this->Click_del();
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
void CShoukuanPageUI::ShowError(std::wstring err)
|
|
|
{
|
|
|
CLabelUI* m_pLabel = static_cast<CLabelUI*>(this->FindSubControl(_T("errorinfo")));
|
|
|
@@ -1023,4 +1008,182 @@ void CShoukuanPageUI::ClickMemberLogout()
|
|
|
m_is_member = false;
|
|
|
|
|
|
this->UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_1()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"1");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_2()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"2");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_3()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"3");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_4()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"4");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_5()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"5");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_6()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"6");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_7()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"7");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_8()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"8");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_9()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"9");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_0()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"0");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_dian()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L".");
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_qingkong()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = L"0";
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
+}
|
|
|
+
|
|
|
+void CShoukuanPageUI::Click_del()
|
|
|
+{
|
|
|
+ CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("shoukuan_page_money_edit")));
|
|
|
+ wstring wsReason = pContent->GetText();
|
|
|
+
|
|
|
+ wsReason = wsReason.substr(0, wsReason.size() - 1);
|
|
|
+
|
|
|
+ if (wsReason == L"")
|
|
|
+ {
|
|
|
+ wsReason = L"0";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ wsReason = CLewaimaiString::ShuziInputFormat(wsReason, L"");
|
|
|
+ }
|
|
|
+
|
|
|
+ pContent->SetText(wsReason.c_str());
|
|
|
+ pContent->SetFocus();
|
|
|
+
|
|
|
+ UpdateJiesuanInfo();
|
|
|
}
|