On 11/21/18 6:53 PM, Huw Davies wrote:
On Wed, Nov 21, 2018 at 06:19:18PM +0300, Nikolay Sivov wrote:
On 11/21/18 5:51 PM, Huw Davies wrote:
static BOOL is_item_selected(LB_DESCR *descr, UINT index) {
- if (is_singlesel_NODATA(descr))
}return NODATA_is_sel(descr, index); return descr->items[index].selected;
So this looks like if (!IS_MULTISELECT(descr)) return index != descr->selected_item; return descr->items[index].selected;
This also should go to is_item_selected().
Right, I was rewriting is_item_selected().
Eh, sorry, missed context completely.