protected override void OnCreateControl() { base.OnCreateControl(); NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo(); _EditHandle = cbi.hwndEdit; }
private NativeMethods.ComboBoxInfo GetComboBoxInfo() { var cbi = new NativeMethods.ComboBoxInfo(); cbi.cbSize = Marshal.SizeOf(cbi); NativeMethods.GetComboBoxInfo(base.Handle, ref cbi); return(cbi); }
private Rectangle GetDropDownButtonRect() { NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo(); return(cbi.rcButton.Rect); }
private bool GetComboBoxButtonPressed() { NativeMethods.ComboBoxInfo cbi = GetComboBoxInfo(); return(cbi.stateButton == NativeMethods.ComboBoxButtonState.STATE_SYSTEM_PRESSED); }