The code is as follows:
{
//TODO: Add your the control notification handler code here
Int counter=0;
Cstrings temp, zd_num zd_pnum zd_x, zd_y, zd_h;
for(int i=0; i{
If (m_zhendi. GetItemState (I, LVIS_SELECTED)==LVIS_SELECTED)//get selected row
{
Zd_num=m_zhendi. GetItemText (I, 0).//the bank columns of information
Zd_pnum=m_zhendi. GetItemText (I, 1);
Zd_x=m_zhendi. GetItemText (I, 2);
Zd_y=m_zhendi. GetItemText (I, 3);
Zd_h=m_zhendi. GetItemText (I, 4);
Zddata [I] zdnum=atoi (zd_num);
Zddata [I] pnum=atoi (zd_pnum);
Zddata [I]. ZDX=(long) atol (zd_x);
Zddata [I]. Zdy=(long) atol (zd_y);
Zddata [I] ZDH=(long) atol (zd_h);
Zddata [I] zdtag=1;
Counter=counter + 1;
}
}
Temp. The Format (" % ld, "zddata [I]. Zdy);
MessageBox (" selected "+ temp +" data ", "data", NULL);
}
CodePudding user response:
May when you click a button, all become uncheck the option selected in the list.Under the best way or at the beginning of the function of a breakpoint, debugging and running process, and then see how program execution, have to do as you think.
Whether for loop execution, for example, whether to enter the if condition, and so on
CodePudding user response:
Look you place the order with the Debug step debugging should be clear ~