Home > Software engineering >  Vc MFC GetItemText listcontrol control problem
Vc MFC GetItemText listcontrol control problem

Time:10-19

When I was in programming by using one of the ranks of GetItemText obtain the list controls the value of the
M_str=m_listshow. GetItemText (iIndex, 8). Which is suitable for cstrings m_str type,

The result is not complete, m_listshow character is very long, about 500 words or so, only get more than 200, specific how many no check,

Excuse me, what reason is this,

CodePudding user response:

Try using another form of
M_listshow. GetItemText (iIndex, 8, m_str GetBuffer (1024), 1024);
M_str. ReleaseBuffer ();

CodePudding user response:

reference 1st floor zgl7903 response:

try another formM_listshow. GetItemText (iIndex, 8, m_str GetBuffer (1024), 1024);
M_str. ReleaseBuffer ();


Not ah, this time into the code

CodePudding user response:

Controls the ListBox or ListControl?
  • Related