Home > Software engineering > Duilib click event GetCurSel for a list control is the last of the index
Duilib click event GetCurSel for a list control is the last of the index
Time:11-14
CodePudding user response:
As title, the trouble you have studied Duilib to explain
CodePudding user response:
Int nIndex=plist - & gt; GetCurSel ();//click return 1 for the first time at the back of the return per click is the index of the previous CListTextElementUI * pListElement=static_cast & lt; CListTextElementUI * & gt; (plist - & gt; GetItemAt (nIndex));
CodePudding user response:
You're response DUI_MSGTYPE_ITEMCLICK this notice after ?If it is, because it is first send this notice again selected code, so as you say You can change the code, or change the idea