MCPcopy Create free account
hub / github.com/WheretIB/nullc / SetCurrentTab

Method SetCurrentTab

GUI/TabbedFiles.cpp:314–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314void TabbedFiles::SetCurrentTab(HWND wnd, unsigned int id)
315{
316 TabbedFilesData *data = GetData(wnd);
317 if(data->selectedTab == id)
318 return;
319
320 data->selectedTab = id;
321 for(unsigned int i = 0; i < data->tabCount + 1; i++)
322 ShowWindow(data->tabInfo[i].window, SW_HIDE);
323 ShowWindow(data->tabInfo[data->selectedTab].window, SW_SHOW);
324 InvalidateRect(wnd, NULL, true);
325}
326
327TabbedFiles::TabInfo& TabbedFiles::GetTabInfo(HWND wnd, unsigned int id)
328{

Callers

nothing calls this directly

Calls 1

GetDataFunction · 0.70

Tested by

no test coverage detected