| | |
selecting entire row in CListCtrl
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 119
Reputation:
Solved Threads: 10
Hello,
I have a CListCtrl and a button to modify the selected row in the CListCtrl.
My problem is that my list has several columns and I want to be able to select a row by clicking on any column of the row that I want selected. Now I can only select a row by clicking on the value found on it's first column. I think it's something about the CListCtrl propertyes , but can't figure out what has to be set.
Thx in advnace
I have a CListCtrl and a button to modify the selected row in the CListCtrl.
My problem is that my list has several columns and I want to be able to select a row by clicking on any column of the row that I want selected. Now I can only select a row by clicking on the value found on it's first column. I think it's something about the CListCtrl propertyes , but can't figure out what has to be set.
Thx in advnace
The solution is to find out what is the difference between clicking on the first column and clicking on the second column. In both cases I think your program should get the click event.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Sorry Im not able to get your question.
1) Do you want to select an entire column by clicking on a cell???
2) Or do you want to select the entire row by clicking on a cell???
If your question is No:2 u need to set a style for the list control.
If your question is No:1 then u need to seperately handle it. There is no styles for that
1) Do you want to select an entire column by clicking on a cell???
2) Or do you want to select the entire row by clicking on a cell???
If your question is No:2 u need to set a style for the list control.
C++ Syntax (Toggle Plain Text)
m_ListCtrl.SetExtendedStyle( m_ListCtrl.GetExtendedStyle() | LVS_EX_GRIDLINES | LVS_EX_FULLROWSELECT )
If your question is No:1 then u need to seperately handle it. There is no styles for that
![]() |
Other Threads in the C++ Forum
- Previous Thread: Using CreateThread() function
- Next Thread: Win32 DialogBox
| Thread Tools | Search this Thread |
api array arrays based binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






