public ToolStripComboBoxControlAccessibleObject(ToolStripComboBoxControl toolStripComboBoxControl) : base(toolStripComboBoxControl) { childAccessibleObject = new ChildAccessibleObject(toolStripComboBoxControl, toolStripComboBoxControl.Handle); }
private void WmGetObject(ref Message m) { if (-4 == ((int) ((long) m.LParam))) { Guid refiid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); try { AccessibleObject accessibleImplemention = null; if (this._accessibilityObject == null) { System.Windows.Forms.IntSecurity.UnmanagedCode.Assert(); try { accessibleImplemention = new ComboBox.ChildAccessibleObject(this._owner, base.Handle); this._accessibilityObject = new InternalAccessibleObject(accessibleImplemention); } finally { CodeAccessPermission.RevertAssert(); } } IntPtr iUnknownForObject = Marshal.GetIUnknownForObject(this._accessibilityObject); System.Windows.Forms.IntSecurity.UnmanagedCode.Assert(); try { m.Result = System.Windows.Forms.UnsafeNativeMethods.LresultFromObject(ref refiid, m.WParam, new HandleRef(this, iUnknownForObject)); } finally { CodeAccessPermission.RevertAssert(); Marshal.Release(iUnknownForObject); } return; } catch (Exception exception) { throw new InvalidOperationException(System.Windows.Forms.SR.GetString("RichControlLresult"), exception); } } base.DefWndProc(ref m); }