我怎样才能得到DropDown Button
一个ComboBox
?
对于任何不确定我的意思的人来说,它Button
通常位于ComboBox
包含向下箭头的右侧.单击时,将展开该DropDown
部分.
为了进一步说明,它是下图中红色圆圈中的按钮.
对于这样的常量,您可以使用GetSystemMetrics API函数; C#quick analogue是SystemInformation类:
using System.Windows.Forms; ... int arrowWidth = SystemInformation.VerticalScrollBarWidth;