32 wstring ITextOperations::getText()
const
34 int textLength = GetWindowTextLengthW(textHandle);
39 DWORD errorCode = GetLastError();
47 text.resize(++textLength);
49 GetWindowTextW(textHandle, text.data(), textLength);
ITextOperations(HWND handle, const std::wstring &text=L"")