c++ - what will be the return value of GetCurSel -
i have list of users in application , have selected 2 users. doubt is, if call getcursel after selecting 2 users, getcursel having 2 users or last selected user? please clarify.
from http://msdn.microsoft.com/en-gb/library/6ty0th77%28v=vs.110%29.aspx got following:
int clistbox::getcursel( ) const returns single integer value. index of 1 list box entry. never indices of 2 entries function.
reading further learn:
in multiple-selection list box, [the method returns] index of item has focus. [..] not call getcursel multiple-selection list box. use clistbox::getselitems instead.
the documentation latter can found here: http://msdn.microsoft.com/en-gb/library/ds24bscf.aspx
Comments
Post a Comment