Go to end?
-
I have a CListBox that get some text. I want to go to the last input so I can see what text its comming. How can I do that?
-
Hello Larsson, You should get the number of items using GetCount(); and then use GetText(int A, CString &CS); Where A must be the index of the last item. Where CS must be a receiver CString. Hope this helps.
-
I cant get this to work, can you please typ a exemple here so I can see. I hace try to use this, iGo = m_AddLogg.GetCount(); m_AddLogg.GetText(iGo, sText); But this dont make me go down in the list. Note that sText in this case is emty.
Larsson wrote:
iGo = m_AddLogg.GetCount(); m_AddLogg.GetText(iGo, sText);
Index is zero based, so you need to use following code,
iGo = m_AddLogg.GetCount();
m_AddLogg.GetText((iGo-1), sText);Prasad Notifier using ATL | Operator new[],delete[][^]
-
I cant get this to work, can you please typ a exemple here so I can see. I hace try to use this, iGo = m_AddLogg.GetCount(); m_AddLogg.GetText(iGo, sText); But this dont make me go down in the list. Note that sText in this case is emty.