RowCount example for C++ 5.0 and later
long LinesPerPage,IMGLST_SCROLLSTYLE_VERTICAL;
CString s;
if(m_LEADImageList.GetScrollStyle() == IMGLST_SCROLLSTYLE_VERTICAL)
LinesPerPage = m_LEADImageList.GetRowCount() / m_LEADImageList.GetPageCount();
else
LinesPerPage = m_LEADImageList.GetColumnCount() / m_LEADImageList.GetPageCount();
s.Format(TEXT("LinesPerPage = %d"), LinesPerPage);
AfxMessageBox(s);