Beispiel #1
0
        protected override void OnCreateControl()
        {
            base.OnCreateControl();

            NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo();
            _editHandle = cbi.hwndEdit;
        }
Beispiel #2
0
 private NativeMethods.ComboBoxInfo GetComboBoxInfo()
 {
     NativeMethods.ComboBoxInfo cbi = new NativeMethods.ComboBoxInfo();
     cbi.cbSize = Marshal.SizeOf(cbi);
     NativeMethods.GetComboBoxInfo(base.Handle, ref cbi);
     return(cbi);
 }
Beispiel #3
0
        private Rectangle GetDropDownButtonRect()
        {
            NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo();

            return(cbi.rcButton.Rect);
        }
Beispiel #4
0
 private bool GetComboBoxButtonPressed()
 {
     NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo();
     return(cbi.stateButton ==
            NativeMethods.ComboBoxButtonState.STATE_SYSTEM_PRESSED);
 }
Beispiel #5
0
 private NativeMethods.ComboBoxInfo GetComboBoxInfo()
 {
     NativeMethods.ComboBoxInfo cbi = new NativeMethods.ComboBoxInfo();
     cbi.cbSize = Marshal.SizeOf(cbi);
     NativeMethods.GetComboBoxInfo(base.Handle, ref cbi);
     return cbi;
 }