Esempio n. 1
0
 private Win32.NativeMethods.ComboBoxInfo GetComboBoxInfo()
 {
     Win32.NativeMethods.ComboBoxInfo cbi = new Win32.NativeMethods.ComboBoxInfo();
     cbi.cbSize = Marshal.SizeOf(cbi);
     Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref cbi);
     return(cbi);
 }
Esempio n. 2
0
 private Win32.NativeMethods.ComboBoxInfo GetComboBoxInfo()
 {
     Win32.NativeMethods.ComboBoxInfo info= new Win32.NativeMethods.ComboBoxInfo();
     info = new Win32.NativeMethods.ComboBoxInfo
     {
         cbSize = Marshal.SizeOf(info)
     };
     Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref info);
     return info;
 }
Esempio n. 3
0
 private Win32.NativeMethods.ComboBoxInfo GetComboBoxInfo()
 {
     Win32.NativeMethods.ComboBoxInfo info = new Win32.NativeMethods.ComboBoxInfo();
     info = new Win32.NativeMethods.ComboBoxInfo
     {
         cbSize = Marshal.SizeOf(info)
     };
     Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref info);
     return(info);
 }
Esempio n. 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);
     }
 }
Esempio n. 5
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);
     }
 }
Esempio n. 6
0
        private Rectangle GetDropDownButtonRect()
        {
            Win32.NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo();

            return(cbi.rcButton.Rect);
        }
Esempio n. 7
0
 private Win32.NativeMethods.ComboBoxInfo GetComboBoxInfo()
 {
     Win32.NativeMethods.ComboBoxInfo cbi = new Win32.NativeMethods.ComboBoxInfo();
     cbi.cbSize = Marshal.SizeOf(cbi);
     Win32.NativeMethods.GetComboBoxInfo(base.Handle, ref cbi);
     return cbi;
 }
Esempio n. 8
0
 protected override void OnCreateControl()
 {
     base.OnCreateControl();
     Win32.NativeMethods.ComboBoxInfo comboBoxInfo = this.GetComboBoxInfo();
     this._editHandle = comboBoxInfo.hwndEdit;
 }