I'd like to remove the selection highlight for a listbox when the control loses focus, and switch it back on when focus returns. I've tried lots of different ways with little success. The following code works for switching the selection off, but doesn't work for switching it back on.
The problem seems to be that something resets EDisableHighlight after I've unset it.
void CContainer::FocusChanged(TDrawNow aDrawNow)
mask ^= CListItemDrawer::EDisableHighlight;
flags &= mask;
flags |= CListItemDrawer::EDisableHighlight;
Does anyone have any suggestions?