单选按钮怎么改变顺序?
比如说有r1,r2,r3,....r10,一共10个
r1,r5选了group
GetDlgItem(IDC_RADIO1+1)->GetWindowText(temp);是r2
GetDlgItem(IDC_RADIO1+2)->GetWindowText(temp);是r3
GetDlgItem(IDC_RADIO1+3)->GetWindowText(temp);是r4
我想
GetDlgItem(IDC_RADIO1+1)->GetWindowText(temp);是r4
GetDlgItem(IDC_RADIO1+2)->GetWindowText(temp);是r3
GetDlgItem(IDC_RADIO1+3)->GetWindowText(temp);是r2
怎么做呢?在layout中的Tab Order改变不了。他改变的是选中按钮的返回值,不是IDC_RADIO1+N的值。
有一次做小练习,我都晕了。
m_r1是r1的关联值。
GetDlgItem(IDC_RADIO1+m_r1)->GetWindowText(temp);
单选按的是r2,则m_r1就是1了,但却不是IDC_RADIO1+m_r1得出来的并不是r2而是r6.顺序乱了。怎么也理不清了,不知道怎么设置。多谢了。