MCPcopy Create free account
hub / github.com/apache/arrow / ListAddColumn

Method ListAddColumn

cpp/src/arrow/flight/sql/odbc/odbc_impl/ui/window.cc:202–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void Window::ListAddColumn(const std::wstring& name, int index, int width) {
203 LVCOLUMN lvc;
204 lvc.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
205 lvc.fmt = LVCFMT_LEFT;
206 lvc.cx = width;
207 lvc.pszText = const_cast<wchar_t*>(name.c_str());
208 lvc.iSubItem = index;
209
210 if (ListView_InsertColumn(handle_, index, &lvc) == -1) {
211 std::stringstream buf;
212 buf << "Can not add list column, error code: " << GetLastError();
213 throw DriverException(buf.str());
214 }
215}
216
217void Window::ListAddItem(const std::vector<std::wstring>& items) {
218 LVITEM lvi = {0};

Callers 1

CreatePropertiesGroupMethod · 0.80

Calls 2

DriverExceptionClass · 0.85
strMethod · 0.80

Tested by

no test coverage detected