| 648 | } |
| 649 | |
| 650 | bool CSaveModifiedItemsDialog::HideColumn(ColumnIndex column) |
| 651 | { |
| 652 | ATLASSERT(((!m_header.IsWindow()) || (m_header.IsWindow() && m_header.GetItemCount() < 1)) && |
| 653 | "Please call this before InitializeColumns()."); |
| 654 | if(column < 0 || column > eColumn_Last || column == eColumn_Name) |
| 655 | { |
| 656 | ATLASSERT(0 && "Invalid column index"); |
| 657 | return false; |
| 658 | } |
| 659 | |
| 660 | m_showColumn[column] = false; |
| 661 | |
| 662 | if(column == m_lastVisibleColumn) |
| 663 | { |
| 664 | // Find the new last visible column |
| 665 | while((m_lastVisibleColumn > 0) && !m_showColumn[m_lastVisibleColumn]) |
| 666 | { |
| 667 | m_lastVisibleColumn = (ColumnIndex)((int)m_lastVisibleColumn-1); |
| 668 | } |
| 669 | } |
| 670 | return true; |
| 671 | } |
| 672 | |
| 673 | LRESULT CSaveModifiedItemsDialog::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) |
| 674 | { |
no outgoing calls
no test coverage detected