HexEdit/GridCtrl_src/GridCtrl.cpp
BOOL CGridCtrl::DeleteAllItems()
{
    ResetSelectedRange();

    m_arColWidths.RemoveAll();
    m_arRowHeights.RemoveAll();
    m_col_size.clear();

    // Delete all cells in the grid
    if (!GetVirtualMode())
    {
        for (int row = 0; row < m_nRows; row++)
        {
            for (int col = 0; col < m_nCols; col++)
                DestroyCell(row, col);

            GRID_ROW* pRow = m_RowData[row];
            delete pRow;
        }

        // Remove all rows
        m_RowData.RemoveAll();
    }

    m_idCurrentCell.row = m_idCurrentCell.col = -1;
    m_nRows = m_nFixedRows = m_nCols = m_nFixedCols = 0;

    ResetScrollBars();

    SetModified();

    return TRUE;
}
// Removes all rows, columns and data from the grid.

Removes all rows, columns and data from the grid.
Removes all rows columns and data from the grid .
BOOL CGridCtrl::DeleteAllItems()
{
    ResetSelectedRange();
    m_arColWidths.RemoveAll();
    m_arRowHeights.RemoveAll();
    m_col_size.clear();
    if (!GetVirtualMode())
    {
        for (int row = 0; row < m_nRows; row++)
        {
            for (int col = 0; col < m_nCols; col++)
                DestroyCell(row, col);
            GRID_ROW* pRow = m_RowData[row];
            delete pRow;
        }
        m_RowData.RemoveAll();
    }
    m_idCurrentCell.row = m_idCurrentCell.col = -1;
    m_nRows = m_nFixedRows = m_nCols = m_nFixedCols = 0;
    ResetScrollBars();
    SetModified();
    return TRUE;
}
BOOL CGridCtrl :: DeleteAllItems ( ) { ResetSelectedRange ( ) ; m_arColWidths . RemoveAll ( ) ; m_arRowHeights . RemoveAll ( ) ; m_col_size . clear ( ) ; if ( ! GetVirtualMode ( ) ) { for ( int row = 0 ; row < m_nRows ; row ++ ) { for ( int col = 0 ; col < m_nCols ; col ++ ) DestroyCell ( row , col ) ; GRID_ROW * pRow = m_RowData [ row ] ; delete pRow ; } m_RowData . RemoveAll ( ) ; } m_idCurrentCell . row = m_idCurrentCell . col = -1 ; m_nRows = m_nFixedRows = m_nCols = m_nFixedCols = 0 ; ResetScrollBars ( ) ; SetModified ( ) ; return TRUE ; }
Removes all rows, columns and data from the grid.
Removes all rows columns and data from the grid .
// Delete all cells in the grid
 // Remove all rows
