Exemplo 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);
 }
Exemplo 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;
 }
Exemplo 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);
 }
Exemplo 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);
     }
 }
Exemplo 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);
     }
 }
Exemplo n.º 6
0
        private Rectangle GetDropDownButtonRect()
        {
            Win32.NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo();

            return(cbi.rcButton.Rect);
        }
Exemplo 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;
 }
Exemplo n.º 8
0
 protected override void OnCreateControl()
 {
     base.OnCreateControl();
     Win32.NativeMethods.ComboBoxInfo comboBoxInfo = this.GetComboBoxInfo();
     this._editHandle = comboBoxInfo.hwndEdit;
 }