| | |
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
Views: 2130 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






