Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Deleting columns in CExtListCtrl Collapse All
Subject Author Date
Jordi Cruzado Sep 4, 2009 - 5:21 AM

I’m trying to delete columns in a CExtListCtrl and I get an Assertion. I’m using 2.85 version. This assertion is from the next lines:




        ASSERT( m_arrExtendedData.GetSize() == GetItemCount() );

        m_arrExtendedData.RemoveAt( ( int ) wParam );

        ASSERT( m_arrExtendedData.GetSize() == GetItemCount() );




located in the file:


belonging to the function:

LRESULT CExtHeaderCtrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)

I use DeleteColumn(0) from CListCtrl to remove column number 0 (but I have also the same problem trying to delete any column)

I think the second assertion (the one in red) must be wrong and it must be like:

        ASSERT( m_arrExtendedData.GetSize() == GetItemCount() - 1 );

Is it right?. Or I’m doing something incorrect?


Technical Support Sep 4, 2009 - 1:21 PM

These assertions are really not needed in the CExtHeaderCtrl::WindowProc() method. Here is the updated source code for Prof-UIS common controls: