Click here to Skip to main content
15,067,251 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi everyone , i am a fresh man in C++ , i have a question , that is , how to display row number when using a CListCtrl ? thank you .
Posted
Comments
Sergey Alexandrovich Kryukov 22-Aug-13 23:25pm
   
If you can display anything at all in this control, why not row number? It's not different from any other string, is it? :-)
—SA
Member 10221715 22-Aug-13 23:29pm
   
i am not clear on your comment , do you know how to display ?
Richard MacCutchan 23-Aug-13 3:56am
   
There is no such thing as row number in a list control. You can, however, get the index of a selected item.
Member 10221715 23-Aug-13 4:07am
   
thank you for your help , one more question , when i select a cell ,then the whole row was selected , how to select single cell ? please help me , thanks a lot
Member 10221715 23-Aug-13 4:00am
   
thank you for your help , one more question , when i select a cell ,then the whole row was selected , how to select single cell ? please help me , thanks a lot
Richard MacCutchan 23-Aug-13 4:19am
   
You don't select single cells, that is not part of a List control's functionality. You could take a look at Chris Maunder's MFC Grid Control.

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