BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID ); rectPoints to the position and size of the combo box. Can be a RECT structure or a CRect object.不是这个参数吗?
CComboBox::SetDroppedWidth int SetDroppedWidth( UINT nWidth );Return ValueIf successful, the new width of the list box, otherwise CB_ERR. ParametersnWidthThe minimum allowable width of the list-box portion of the combo box, in pixels.呵呵,楼上的是高人啊
SetDroppedWidth Sets the minimum allowable width for the drop-down list-box portion of a combo box. 如果你要保证一样的高度,那你就多添加几项,凑足固定高度,在选的时候不处理那些凑上来的项不就可以了。
rectPoints to the position and size of the combo box. Can be a RECT structure or a CRect object.不是这个参数吗?
int SetDroppedWidth( UINT nWidth );Return ValueIf successful, the new width of the list box, otherwise CB_ERR. ParametersnWidthThe minimum allowable width of the list-box portion of the combo box, in pixels.呵呵,楼上的是高人啊
如果你要保证一样的高度,那你就多添加几项,凑足固定高度,在选的时候不处理那些凑上来的项不就可以了。
你看见楼主要固定高度吗?如果要动态调整,用MoveWindow就可以了。
如果要在资源中编辑的话,点击COMBOBOX的那个向下的箭头(一定要点在箭头上),然后拖动改变高度。