Posted 14 years ago by Michael Gunlock
When rendering a Tool Window (docking, hiding, activating) there is a brief flicker in the left hand corner of the MDI client area of the form. Please note, I am not talking about flicker within the child control itself...the flicker is occuring in the MDI client area even when, for example, the docking is occuring on the far right client area. It appears the Tool Window's initial rendering occurs at 0,0 coordinates and then at desired coordinates . This type of flicker occurs only when there are child control and when those child windows are not double buffered. Double buffering is not typically a problem, but I have a "flicker free" ListView (by setting LVS_EX_DOUBLEBUFFER flag) with a horizontal scrollbar that exhibits this behavior. Although, the ListView does not flicker, the ListView scrollbar is clearly not double buffered because I now have a brief flash of a horizontal scroll bar (not the ListView) in the left hand corner of the MDI client area for a brief moment before the Tool Window containing the ListView is rendered. If I disable ListView double buffering for the list view, then the entire ListView control and scrollbar briefly flash. How can I avoid this?