I have 2 buttons namely "disconnect"- deletes a single variable as selected in list control and perform certain actions and "delete"-permanently deletes multiple variables as selected in a list control. my requirement is to disable the "disconnect" button if multiple selections are made.for this I need to keep the count of selections made. Can someone suggest how to do this?
There is a function for that - CListCtrl::GetSelectedCount .
There is also a macro ListView_GetSelectedCount .
or you can send LVM_GETSELECTEDCOUNT message directly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.