public PbrsForward(Control target, IServiceProvider sp) { this.target = target; this.oldTarget = target.WindowTarget; this.sp = sp; target.WindowTarget = this; }
public PbrsForward(Control target, IServiceProvider sp) { this.target = target; oldTarget = target.WindowTarget; this.sp = sp; target.WindowTarget = this; }
public void Unsubclass() { if (this._oldWindowTarget != null) { this._toolBar.WindowTarget = this._oldWindowTarget; this._oldWindowTarget = null; } }
public DesignerWindowTarget(ControlDesigner designer) { Control control = designer.Control; _designer = designer; _oldTarget = control.WindowTarget; control.WindowTarget = this; }
public void Subclass() { if (this._toolBar.WindowTarget != this) { this._oldWindowTarget = this._toolBar.WindowTarget; this._toolBar.WindowTarget = this; } }
public static void AddWndOverride(int wm_msg, IWindowTarget target) { lock (WndOverrides) { if (!WndOverrides.Contains(wm_msg)) { WndOverrides.Add(wm_msg, target); } } }
// Disposes and puts back the old IWindowTarget // public void Dispose() { if (_control != null) { _control.WindowTarget = _oldTarget; } _control = null; _oldTarget = null; }
public WndProcRouter (Control control, IMessageReceiver receiver) { if (control == null) throw new ArgumentNullException ("control"); if (receiver == null) throw new ArgumentNullException ("receiver"); _oldTarget = control.WindowTarget; _control = control; _receiver = receiver; }
public WndProcRouter(Control control, IMessageReceiver receiver) { if (control == null) { throw new ArgumentNullException("control"); } if (receiver == null) { throw new ArgumentNullException("receiver"); } _oldTarget = control.WindowTarget; _control = control; _receiver = receiver; }
public static bool WndOverride(ref Message m) { lock (WndOverrides) { if (WndOverrides.Contains(m.Msg)) { // do we need to handle multiple overrides, or overrides // that choose not to do anything? IWindowTarget iw = (IWindowTarget)WndOverrides[m.Msg]; iw.OnMessage(ref m); return(true); } else { return(false); } } }
public DesignerSite(DesignerHost host, IComponent comp, IContainer con, string name) { _host = host; _component = comp; _container = con; _name = name; _serviceContainer = new ServiceContainer(); _dictHash = new Hashtable(); if (comp is Control) { _origWindowTarget = ((Control)comp).WindowTarget; } if (ComponentAdded != null) { ComponentAdded(this, new ComponentEventArgs(comp)); } if (ComponentAdding != null) { ComponentAdding(this, new ComponentEventArgs(comp)); } }
public DesignerSite(DesignerHost host, IComponent comp, IContainer con, string name) { _host = host; _component = comp; _container = con; _name = name; _serviceContainer = new ServiceContainer(); _dictHash = new Hashtable(); if (comp is Control) _origWindowTarget = ((Control)comp).WindowTarget; if (ComponentAdded != null) ComponentAdded(this, new ComponentEventArgs(comp)); if (ComponentAdding != null) ComponentAdding(this, new ComponentEventArgs(comp)); }
// Disposes and puts back the old IWindowTarget // public void Dispose () { if (_control != null) _control.WindowTarget = _oldTarget; _control = null; _oldTarget = null; }
public DesignerWindowTarget(ControlDesigner designer) { Control control = designer.Control; this.designer = designer; this.oldTarget = control.WindowTarget; control.WindowTarget = this; }
public ChildWindowTarget(ControlDesigner designer, Control childControl, IWindowTarget oldWindowTarget) { this.designer = designer; this.childControl = childControl; this.oldWindowTarget = oldWindowTarget; }
public Control () { if (WindowsFormsSynchronizationContext.AutoInstall) if (!(SynchronizationContext.Current is WindowsFormsSynchronizationContext)) SynchronizationContext.SetSynchronizationContext (new WindowsFormsSynchronizationContext ()); layout_type = LayoutType.Anchor; anchor_style = AnchorStyles.Top | AnchorStyles.Left; is_created = false; is_visible = true; is_captured = false; is_disposed = false; is_enabled = true; is_entered = false; layout_pending = false; is_toplevel = false; causes_validation = true; has_focus = false; layout_suspended = 0; mouse_clicks = 1; tab_index = -1; cursor = null; right_to_left = RightToLeft.Inherit; border_style = BorderStyle.None; background_color = Color.Empty; dist_right = 0; dist_bottom = 0; tab_stop = true; ime_mode = ImeMode.Inherit; use_compatible_text_rendering = true; show_keyboard_cues = false; show_focus_cues = SystemInformation.MenuAccessKeysUnderlined; use_wait_cursor = false; backgroundimage_layout = ImageLayout.Tile; use_compatible_text_rendering = Application.use_compatible_text_rendering; padding = this.DefaultPadding; maximum_size = new Size(); minimum_size = new Size(); margin = this.DefaultMargin; auto_size_mode = AutoSizeMode.GrowOnly; control_style = ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.Selectable | ControlStyles.StandardClick | ControlStyles.StandardDoubleClick; control_style |= ControlStyles.UseTextForAccessibility; parent = null; background_image = null; text = string.Empty; name = string.Empty; window_target = new ControlWindowTarget(this); window = new ControlNativeWindow(this); child_controls = CreateControlsInstance(); bounds.Size = DefaultSize; client_size = ClientSizeFromSize (bounds.Size); client_rect = new Rectangle (Point.Empty, client_size); explicit_bounds = bounds; }
internal SafeWindowTarget(IServiceProvider serviceProvider, IWindowTarget inner) { this.serviceProvider = serviceProvider; this.inner = inner; }
public ChildWindowTarget(ControlDesigner designer, Control childControl, IWindowTarget oldWindowTarget) { _designer = designer; _childControl = childControl; OldWindowTarget = oldWindowTarget; }