wxCONSTRUCTOR_5( wxListCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
/*
- TODO : Expose more information of a list's layout etc. via appropriate objects (à la NotebookPageInfo)
+ TODO : Expose more information of a list's layout etc. via appropriate objects (a la NotebookPageInfo)
*/
#else
IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxControl)
int numCols = GetColumnCount();
int* indexArray = new int[numCols];
- BOOL rv = ListView_GetColumnOrderArray( GetHwnd(), numCols, indexArray );
- wxASSERT_MSG( rv == TRUE, _T("invalid column index array in OnPaint()") );
+ if ( !ListView_GetColumnOrderArray( GetHwnd(), numCols, indexArray) )
+ {
+ wxFAIL_MSG( _T("invalid column index array in OnPaint()") );
+ }
int x = itemRect.GetX();
for (int col = 0; col < numCols; col++)