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

Method AddTab

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

Source from the content-addressed store, hash-verified

263}
264
265void Window::AddTab(const std::wstring& name, int index) {
266 TCITEM tab_control_item;
267 tab_control_item.mask = TCIF_TEXT | TCIF_IMAGE;
268 tab_control_item.iImage = -1;
269 tab_control_item.pszText = const_cast<wchar_t*>(name.c_str());
270 if (TabCtrl_InsertItem(handle_, index, &tab_control_item) == -1) {
271 std::stringstream buf;
272 buf << "Can not add tab, error code: " << GetLastError();
273 throw DriverException(buf.str());
274 }
275}
276
277void Window::GetText(std::wstring& text) const {
278 if (!IsEnabled()) {

Callers 1

OnCreateMethod · 0.80

Calls 2

DriverExceptionClass · 0.85
strMethod · 0.80

Tested by

no test coverage detected