private CCWin.Win32.NativeMethods.ComboBoxInfo GetComboBoxInfo() { CCWin.Win32.NativeMethods.ComboBoxInfo cbi = new CCWin.Win32.NativeMethods.ComboBoxInfo(); cbi.cbSize = Marshal.SizeOf(cbi); CCWin.Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref cbi); return cbi; }
protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); CCWin.Win32.NativeMethods.ComboBoxInfo cbi = new CCWin.Win32.NativeMethods.ComboBoxInfo(); cbi.cbSize = Marshal.SizeOf(cbi); CCWin.Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref cbi); this._editHandle = cbi.hwndEdit; if (base.DropDownStyle != ComboBoxStyle.DropDownList) { this._editNativeWindow = new EditNativeWindow(this); } }