Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
m_ListCtrl->Create(WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT,RDlgList,this,10000);

DWORD dwStyle = m_ListCtrl->GetExtendedStyle();
dwStyle |= LVS_EX_FULLROWSELECT;
dwStyle |= LVS_EX_GRIDLINES;

m_ListCtrl->SetExtendedStyle(dwStyle);
m_ListCtrl->InsertColumn( 0 , _T("Num") , LVCFMT_LEFT ,50);
for (int i = 1 ; i < COLNUM; i++)
{
strListname.Format(_T("REsult %d"),i);
m_ListCtrl->InsertColumn( i , strListname , LVCFMT_LEFT ,100);
}

When COLNUM exceeds 347, the display immediately appears misplaced and the data behind 348 cannot be seen. How can I solve this problem

What I have tried:

i had try to new ctl,but it is not useful
Posted
Comments
Richard MacCutchan 24-Jan-19 4:58am    
That is a far too big number of columns for a ListView. How do you expect your users to be able to read the information? You need to rethink your design.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900