G
Guest
Hello,
I'm trying to create an owner drawn ListBox to display video footage. Every
frame of video, I call myListBox.Invalidate(). I draw each frame using the
'Graphics.DrawImage' method. If I subscribe to the 'DrawItem' event to draw
my items, they flicker. If I set the control styles 'AllPaintingInWmPaint'
and 'UserPaint' to true and override the 'OnPaint' method, I can draw the
video without flicker, but then I've lost support for drawing individual
items and scrolling. I'm already setting the 'OptimizedDoubleBuffer' style
to true while using both methods. Are there any parameters I can change to
prevent flickering in the 'DrawItem' event handler?
I'm trying to create an owner drawn ListBox to display video footage. Every
frame of video, I call myListBox.Invalidate(). I draw each frame using the
'Graphics.DrawImage' method. If I subscribe to the 'DrawItem' event to draw
my items, they flicker. If I set the control styles 'AllPaintingInWmPaint'
and 'UserPaint' to true and override the 'OnPaint' method, I can draw the
video without flicker, but then I've lost support for drawing individual
items and scrolling. I'm already setting the 'OptimizedDoubleBuffer' style
to true while using both methods. Are there any parameters I can change to
prevent flickering in the 'DrawItem' event handler?