MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / CopyTo

Method CopyTo

WinArk/ColumnManager.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6ColumnManager::~ColumnManager() = default;
7
8bool ColumnManager::CopyTo(ColumnManager & other) const {
9 if (other.GetCount() != GetCount())
10 return false;
11
12 int i = 0;
13 for (const auto& column : m_Columns) {
14 other.SetColumn(i, column);
15 i++;
16 }
17 return true;
18}
19
20void ColumnManager::AddFromControl(HWND hWnd) {
21 CHeaderCtrl header(hWnd == nullptr ? m_ListView.GetHeader() : CListViewCtrl(hWnd).GetHeader());

Callers

nothing calls this directly

Calls 2

SetColumnMethod · 0.80
GetCountMethod · 0.45

Tested by

no test coverage detected