Index: src/Common/DelftTools.Controls.Swf/ControlExtensions.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/DelftTools.Controls.Swf/ControlExtensions.cs (.../ControlExtensions.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/DelftTools.Controls.Swf/ControlExtensions.cs (.../ControlExtensions.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -11,6 +11,8 @@ /// public static class ControlExtensions { + private const int WM_SETREDRAW = 11; + /// /// Gets the first found control of type in the control container. Search is recursive. /// @@ -57,15 +59,15 @@ yield return parent; } if (child != null) + { yield return child; + } } } [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, Int32 wMsg, bool wParam, Int32 lParam); - private const int WM_SETREDRAW = 11; - public static void SuspendDrawing(this Control parent) { SendMessage(parent.Handle, WM_SETREDRAW, false, 0);