| 6 | ColumnManager::~ColumnManager() = default; |
| 7 | |
| 8 | bool 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 | |
| 20 | void ColumnManager::AddFromControl(HWND hWnd) { |
| 21 | CHeaderCtrl header(hWnd == nullptr ? m_ListView.GetHeader() : CListViewCtrl(hWnd).GetHeader()); |