new vis
This commit is contained in:
@@ -43,16 +43,16 @@ void ApplyStringToCV(LPCWSTR ws, DWORD pDf, int id)
|
||||
wstring localString = ws;
|
||||
if (!pDf)return;
|
||||
if (!ws)return;
|
||||
DWORD Df = *(DWORD*)pDf;//Df <20><><EFBFBD>ݵ<EFBFBD>ָ<EFBFBD><D6B8>
|
||||
if (!Df)return;//Ϊ<><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD>
|
||||
TESTDATA* nCView = (TESTDATA*)Df;//ʹһ<CAB9><D2BB>TESTDATA*ָ<><D6B8>Df
|
||||
DWORD Df = *(DWORD*)pDf;//Df <20><><EFBFBD>ݵ<EFBFBD>ָ<EFBFBD><D6B8>
|
||||
if (!Df)return;//Ϊ<><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD>
|
||||
TESTDATA* nCView = (TESTDATA*)Df;//ʹһ<CAB9><D2BB>TESTDATA*ָ<><D6B8>Df
|
||||
DWORD pOld;
|
||||
VirtualProtect(nCView, 10 + (localString.length() * 2), PAGE_READWRITE, &pOld);
|
||||
TESTDATA loadFirst = *nCView;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
int posInLine = 0;//<2F><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
||||
int posinCross = 0xD;//<2F><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
||||
TESTDATA loadFirst = *nCView;//<2F><><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
int posInLine = 0;//<2F><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
||||
int posinCross = 0xD;//<2F><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
||||
|
||||
// SetWindowTextW(m_hWnd, L"<22><><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD>");
|
||||
// SetWindowTextW(m_hWnd, L"<22><><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD>");
|
||||
for (int i = 0; i < localString.length(); i++)
|
||||
{
|
||||
if (localString[i] == L'\n')
|
||||
@@ -71,7 +71,7 @@ void ApplyStringToCV(LPCWSTR ws, DWORD pDf, int id)
|
||||
posInLine += 0X1A;
|
||||
}
|
||||
}
|
||||
// SetWindowTextW(m_hWnd, L"<22><><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD>");
|
||||
// SetWindowTextW(m_hWnd, L"<22><><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD>");
|
||||
*(DWORD*)(pDf + 4) = (DWORD)nCView;
|
||||
|
||||
VirtualProtect(nCView, 10 + (localString.length() * 2), pOld, NULL);
|
||||
@@ -129,14 +129,14 @@ void ApplyStringToCV(LPCWSTR ws, DWORD pDf, int id)
|
||||
}
|
||||
|
||||
// MessageBoxW(0, L"2", L"", 0);
|
||||
if (wcsstr(nStr.c_str(), L"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")) {
|
||||
if (wcsstr(nStr.c_str(), L"………")) {
|
||||
|
||||
return -1;
|
||||
}
|
||||
if (wcsstr(nStr.c_str(), L"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"))
|
||||
if (wcsstr(nStr.c_str(), L"…ああ"))
|
||||
return -1;
|
||||
|
||||
if (wcsstr(nStr.c_str(), L"<EFBFBD>դդդ<EFBFBD>"))
|
||||
if (wcsstr(nStr.c_str(), L"ふふふっ"))
|
||||
return -1;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user