void mdi_Activate(MDIChild mc) { if (mc == null) return; if (bMono) { mc.Activate(); this.Refresh(); //Forces a synchronous redraw of all controls } else { #if MONO mc.Activate(); this.Refresh(); //Forces a synchronous redraw of all controls #else LockWindowUpdate(this.Handle); mc.Activate(); this.Refresh(); //Forces a synchronous redraw of all controls LockWindowUpdate(IntPtr.Zero); #endif } }
void mdi_Activate(MDIChild mc) { if (mc == null) return; LockWindowUpdate(this.Handle); mc.Activate(); this.Refresh(); //Forces a synchronous redraw of all controls LockWindowUpdate(IntPtr.Zero); }