CRect rect; m_CityList.GetWindowRect(&rect); TRACE(_T(" screen x is %d y is %d\n"),rect.top,rect.left); CPoint p; p.x=rect.left; p.y=rect.top; ScreenToClient(&p); TRACE(_T(" client x is %d y is %d\n"),p.x,p.y); m_CityList.MoveWindow(p.x,p.y,rect.right-rect.left,300,1); 不行啊 只有宽度改变了 但是下拉框的高读还是不变~~~ 我哪里有问题嘛
拖动下拉框的底边改变高度
我的combbox 是 propertypage 在propertysheet上面 会不会是这个的原因呢?~~
m_CityList.GetWindowRect(&rect);
TRACE(_T(" screen x is %d y is %d\n"),rect.top,rect.left);
CPoint p; p.x=rect.left;
p.y=rect.top;
ScreenToClient(&p);
TRACE(_T(" client x is %d y is %d\n"),p.x,p.y);
m_CityList.MoveWindow(p.x,p.y,rect.right-rect.left,300,1);
不行啊 只有宽度改变了 但是下拉框的高读还是不变~~~
我哪里有问题嘛