I know this is a very old question and answer. However, this is the best result when searching for "C ++ / cli listview flicker" - even though it doesn't even talk about C ++. So here is the C ++ version:
I put this in the header file for my main form, you can put it in another place ...
static void DoubleBuffer(Control^ control, bool enable) { System::Reflection::PropertyInfo^ info = control->GetType()-> GetProperty("DoubleBuffered", System::Reflection::BindingFlags::Instance | System::Reflection::BindingFlags::NonPublic); info->SetValue(control, enable, nullptr); }
If you are lucky enough to land here to find a similar answer for managed C ++, this works for me. :)
Chris Parker Oct 27 '16 at 19:42 2016-10-27 19:42
source share