MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / HideColumn

Method HideColumn

Libraries/TabbingFramework/TabbedMDISave.cpp:650–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650bool 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
673LRESULT CSaveModifiedItemsDialog::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
674{

Callers 1

AutoHideUnusedColumnsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected