Beispiel #1
0
 protected override void OnHandleDestroyed(EventArgs e)
 {
     base.OnHandleDestroyed(e);
     if (_editNativeWindow != null)
     {
         _editNativeWindow.Dispose();
         _editNativeWindow = null;
     }
 }
Beispiel #2
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     NativeMethods.ComboBoxInfo cbi = new NativeMethods.ComboBoxInfo();
     cbi.cbSize = Marshal.SizeOf(cbi);
     NativeMethods.GetComboBoxInfo(base.Handle, ref cbi);
     _editHandle = cbi.hwndEdit;
     if (DropDownStyle != ComboBoxStyle.DropDownList)
     {
         _editNativeWindow = new EditNativeWindow(this);
     }
 }
Beispiel #3
0
 protected override void OnHandleCreated(EventArgs e)
 {
     Win32.NativeMethods.ComboBoxInfo info = new Win32.NativeMethods.ComboBoxInfo();
     base.OnHandleCreated(e);
     info = new Win32.NativeMethods.ComboBoxInfo {
         cbSize = Marshal.SizeOf(info)
     };
     Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref info);
     this._editHandle = info.hwndEdit;
     if (base.DropDownStyle != ComboBoxStyle.DropDownList)
     {
         this._editNativeWindow = new EditNativeWindow(this);
     }
 }
Beispiel #4
0
 protected override void OnHandleCreated(EventArgs e)
 {
     Win32.NativeMethods.ComboBoxInfo info = new Win32.NativeMethods.ComboBoxInfo();
     base.OnHandleCreated(e);
     info = new Win32.NativeMethods.ComboBoxInfo {
         cbSize = Marshal.SizeOf(info)
     };
     Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref info);
     this._editHandle = info.hwndEdit;
     if (base.DropDownStyle != ComboBoxStyle.DropDownList)
     {
         this._editNativeWindow = new EditNativeWindow(this);
     }
 }
Beispiel #5
0
 protected override void OnHandleDestroyed(EventArgs e)
 {
     base.OnHandleDestroyed(e);
     if (this._editNativeWindow != null)
     {
         this._editNativeWindow.Dispose();
         this._editNativeWindow = null;
     }
 }
 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);
     }
 }