如题,谢谢~

解决方案 »

  1.   

    MoveWindow就可以了。
    // This example move a combo box so that the upper left
    // corner of the combo box is at a specific point.// The pointer to my combo box.
    extern CComboBox* pmyComboBox;
    // The point to move the combo box to.
    extern CPoint myPoint;CRect r;pmyComboBox->GetDroppedControlRect(&r);pmyComboBox->GetParent()->ScreenToClient(&r);
    r.OffsetRect(myPoint - r.TopLeft());
    pmyComboBox->MoveWindow(&r);
      

  2.   

    谢谢楼上,已经解决
    再问一下,怎么设置Combo Box控件的高度?想把它变窄一点
      

  3.   

    选中控件,然后按下SHIFT,接着点四个方向键,就可以改变大小了...
    COMBOX的下拉框大小,只要点它的小三角,然后会出现一个白框,直接用鼠标拖就好了
      

  4.   

    setdroppedwidth(uint width(in pixels))