|
|
@@ -699,6 +699,7 @@ void CValueWnd::UpdateKexian(const char* data, int length)
|
|
|
|
|
|
|
|
|
std::string show_command = "\x1bQA";
|
|
|
+ std::string show_command_2 = "QA";
|
|
|
std::string type_command = "\x1bs";
|
|
|
|
|
|
if(new_data == clear_command || new_data == quanmie_command)
|
|
|
@@ -707,14 +708,37 @@ void CValueWnd::UpdateKexian(const char* data, int length)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ int nShowType;
|
|
|
if(new_data.find(show_command) == new_data.npos)
|
|
|
{
|
|
|
- return;
|
|
|
+ //没有\x1bQA,继续找有没有QA(比如思迅)
|
|
|
+ if (new_data.find(show_command_2) == new_data.npos)
|
|
|
+ {
|
|
|
+ //完全没QA
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ nShowType = 2;
|
|
|
+ }
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ nShowType = 1;
|
|
|
+ }
|
|
|
|
|
|
std::string money;
|
|
|
|
|
|
- int nPos = new_data.find(show_command);
|
|
|
+ int nPos;
|
|
|
+
|
|
|
+ if (nShowType == 1)
|
|
|
+ {
|
|
|
+ nPos = new_data.find(show_command);;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ nPos = new_data.find(show_command_2);
|
|
|
+ }
|
|
|
|
|
|
int nTypePos = new_data.find(type_command, nPos + 1);
|
|
|
|
|
|
@@ -729,7 +753,14 @@ void CValueWnd::UpdateKexian(const char* data, int length)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- money = new_data.substr(nPos + 3, nTabPos - nPos - 3);
|
|
|
+ if (nShowType == 1)
|
|
|
+ {
|
|
|
+ money = new_data.substr(nPos + 3, nTabPos - nPos - 3);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ money = new_data.substr(nPos + 2, nTabPos - nPos - 2);
|
|
|
+ }
|
|
|
|
|
|
CLabelUI* valueLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("value")));
|
|
|
|