|
@@ -30,8 +30,7 @@ void CHuiyuanPageUI::InitControl()
|
|
|
//初始化当前页面的展示,处理默认展示效果,在页面被加载的时候调用
|
|
//初始化当前页面的展示,处理默认展示效果,在页面被加载的时候调用
|
|
|
void CHuiyuanPageUI::InitShow()
|
|
void CHuiyuanPageUI::InitShow()
|
|
|
{
|
|
{
|
|
|
- CEditUI* pFukuanEdit = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
- pFukuanEdit->SetFocus();
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//处理按钮点击类事件
|
|
//处理按钮点击类事件
|
|
@@ -41,123 +40,111 @@ void CHuiyuanPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
|
|
|
|
|
if (senderName == L"jianpan_1")
|
|
if (senderName == L"jianpan_1")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"1";
|
|
wsReason += L"1";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_2")
|
|
else if (senderName == L"jianpan_2")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"2";
|
|
wsReason += L"2";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_3")
|
|
else if (senderName == L"jianpan_3")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"3";
|
|
wsReason += L"3";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_4")
|
|
else if (senderName == L"jianpan_4")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"4";
|
|
wsReason += L"4";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_5")
|
|
else if (senderName == L"jianpan_5")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"5";
|
|
wsReason += L"5";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_6")
|
|
else if (senderName == L"jianpan_6")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"6";
|
|
wsReason += L"6";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_7")
|
|
else if (senderName == L"jianpan_7")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"7";
|
|
wsReason += L"7";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_8")
|
|
else if (senderName == L"jianpan_8")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"8";
|
|
wsReason += L"8";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_9")
|
|
else if (senderName == L"jianpan_9")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"9";
|
|
wsReason += L"9";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_0")
|
|
else if (senderName == L"jianpan_0")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason += L"0";
|
|
wsReason += L"0";
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_x")
|
|
else if (senderName == L"jianpan_x")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason = wsReason.substr(0, wsReason.length() - 1);
|
|
wsReason = wsReason.substr(0, wsReason.length() - 1);
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == L"jianpan_qingkong")
|
|
else if (senderName == L"jianpan_qingkong")
|
|
|
{
|
|
{
|
|
|
- CEditUI* pContent = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
|
|
|
|
+ CButtonUI* pContent = static_cast<CButtonUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring wsReason = pContent->GetText();
|
|
std::wstring wsReason = pContent->GetText();
|
|
|
|
|
|
|
|
wsReason.clear();
|
|
wsReason.clear();
|
|
|
|
|
|
|
|
pContent->SetText(wsReason.c_str());
|
|
pContent->SetText(wsReason.c_str());
|
|
|
- pContent->SetFocus();
|
|
|
|
|
}
|
|
}
|
|
|
else if (senderName == _T("huiiyuan_page_sousuo_btn"))
|
|
else if (senderName == _T("huiiyuan_page_sousuo_btn"))
|
|
|
{
|
|
{
|