G
Guest
I implemented a double buffered listview to eliminate flicker. I set the
following styles, then overrode OnPaint and did the drawing. Everything looks
great! However, if I change the font from default, the column headers are not
drawn with the new font and worse yet the scrollbar doesn't know that font
height has changed and I can never scroll to see the last few items on the
list.
Short of adding my own scrollbar, is there a way to let the column headers
and scrollbar know about the new "range" when the font is changed?
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint , true);
following styles, then overrode OnPaint and did the drawing. Everything looks
great! However, if I change the font from default, the column headers are not
drawn with the new font and worse yet the scrollbar doesn't know that font
height has changed and I can never scroll to see the last few items on the
list.
Short of adding my own scrollbar, is there a way to let the column headers
and scrollbar know about the new "range" when the font is changed?
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint , true);