| 244 | } |
| 245 | |
| 246 | std::vector<std::vector<std::wstring> > Window::ListGetAll() { |
| 247 | #define BUF_LEN 1024 |
| 248 | wchar_t buf[BUF_LEN]; |
| 249 | |
| 250 | std::vector<std::vector<std::wstring> > values; |
| 251 | const int num_columns = Header_GetItemCount(ListView_GetHeader(handle_)); |
| 252 | const int num_items = ListView_GetItemCount(handle_); |
| 253 | for (int i = 0; i < num_items; ++i) { |
| 254 | std::vector<std::wstring> row; |
| 255 | for (int j = 0; j < num_columns; ++j) { |
| 256 | ListView_GetItemText(handle_, i, j, buf, BUF_LEN); |
| 257 | row.emplace_back(buf); |
| 258 | } |
| 259 | values.push_back(row); |
| 260 | } |
| 261 | |
| 262 | return values; |
| 263 | } |
| 264 | |
| 265 | void Window::AddTab(const std::wstring& name, int index) { |
| 266 | TCITEM tab_control_item; |
no test coverage detected