我指的是CComboBox显示框的高度分数较少,不要建议!

解决方案 »

  1.   


    CComboBox::SetItemHeight
    int SetItemHeight( int nIndex, UINT cyItemHeight );
    If nIndex is –1, the height of the edit-control or static-text portion of the combo box is to be set.cyItemHeight
    Specifies the height, in pixels, of the combo-box component identified by nIndex.
    把nIndex 设-1,然后cyItemHeight 设置为高度
      

  2.   

    我指的是CComboBox显示框的高度====================
    哪个高度?
      

  3.   

    楼主的意思是设置那个edit框的高度吧如果是那个edit框的高度就是这么设置的,
      

  4.   

    对,是那个edit框的高度,可是我用了这个函数,还是没变啊。
    我的CComboBox是Create出来的,改怎么做才能有效?
      

  5.   

    是点击箭头出现的item内容的那个框的高度,还是本身那个edit的高度?
      

  6.   

    好像这个edit的高度是和字体相配合的
      

  7.   

    SETWINDOWPOS(),修改COMBOBOX的尺寸
      

  8.   

    是点击箭头出现的item内容的那个框的高度
    如果是的话,你就点击控件上的那个箭头,然后拖大就行了.