private Rectangle GetDropDownButtonRect() { ComboBox comboBox = new ComboBox(); ComboBoxInfo info = default(ComboBoxInfo); info.cbSize = Marshal.SizeOf((object)info); Win32.GetComboBoxInfo(comboBox.Handle, ref info); comboBox.Dispose(); int width = info.rcButton.Rect.Width; return(new Rectangle(base.Width - width - _Margin * 2, _Margin, base.Height - _Margin, base.Height - _Margin * 2)); }
private Rectangle GetDropDownButtonRect() { ComboBoxInfo comboBoxInfo = GetComboBoxInfo(); return(comboBoxInfo.rcButton.Rect); }
private bool GetComboBoxButtonPressed() { ComboBoxInfo comboBoxInfo = GetComboBoxInfo(); return(comboBoxInfo.stateButton == ComboBoxButtonState.STATE_SYSTEM_PRESSED); }
public static extern bool GetComboBoxInfo(IntPtr hwndCombo, ref ComboBoxInfo info);