2011-08-16から1日間の記事一覧

テキストボックスのテキストを取得

テキストボックスのテキストの取得方法のメモ. #include <iterator> #include <string> #include <vector> #include <windows.h> #include <tchar.h> std::basic_string<TCHAR> GetText(HWND handle) { int length = ::GetWindowTextLength(handle); if (length <= 0) return std::basic_string<TCHAR>(); std::vector<TCHAR> bu</tchar></tchar></tchar></tchar.h></windows.h></vector></string></iterator>…