CListCtrl
-
Ok,i have try this: for(int k=0; kBravoone
Your coding seems ok. nothing problem with the code. why dont you debug the code and check the value of s1, s2 and sT.
Regards, Ram
-
Your coding seems ok. nothing problem with the code. why dont you debug the code and check the value of s1, s2 and sT.
Regards, Ram
is ok i now but i need s1+s2 = sT but my code make this : MessageBox(s1); and then diplay MessageBox(s2); but i need s1 + s2 = sT MessageBox(sT); How?
Bravoone
-
How can i get the result ? I have a CListCtrl ,i have 2 columns column 0, column 1.All i whant is to select lets say 2 rows(GetCheck) , lets say in row 1-column 1 i have 10 in the second selected(GetCheck) row i have 20 , now i need the rezult 10+20=30 , 30 i need this in CEdit m_result.SetWindowText(...); when i push the button i need to m_list.GetCheck(...); ...i think ! please help me !
Bravoone
Can you try using CListCtrl::GetFirstSelectedItemPosition(), CListCtrl::GetNextSelectedItem()?
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
is ok i now but i need s1+s2 = sT but my code make this : MessageBox(s1); and then diplay MessageBox(s2); but i need s1 + s2 = sT MessageBox(sT); How?
Bravoone
can you change the MessageBox(sT) statement outside the for loop and try.
Regards, Ram
-
Can you try using CListCtrl::GetFirstSelectedItemPosition(), CListCtrl::GetNextSelectedItem()?
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
m_list1.GetFirstSelectedItemPosition() : is not a member of 'CListCtrl'
Bravoone
-
m_list1.GetFirstSelectedItemPosition() : is not a member of 'CListCtrl'
Bravoone
Bravoone_2006 wrote:
m_list1.GetFirstSelectedItemPosition() : is not a member of 'CListCtrl'
Then whatever you are programming is not Visual C++ / MFC. Oh, wait, it could still be VC++ 5.0 from the mid-nineties. Just kidding, but this function *really* should be there.
Failure is not an option - it's built right in.
-
Can you try using CListCtrl::GetFirstSelectedItemPosition(), CListCtrl::GetNextSelectedItem()?
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
ok,but how ?
Bravoone
-
m_list1.GetFirstSelectedItemPosition() : is not a member of 'CListCtrl'
Bravoone
Here it is[^? And you didn't find it. :wtf:
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
ok,but how ?
Bravoone
Use these two functions to get the selected items and the text related to them. Store them in some array(if the items selected are variable) and then add them up outside the loop by traversing the array.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Use these two functions to get the selected items and the text related to them. Store them in some array(if the items selected are variable) and then add them up outside the loop by traversing the array.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
no,no you dont understand the user must not select the items he checks them!!!!!! only items checks i need them to get the value !
Bravoone