移动控件求助
xper 2003-09-15 10:53:02 在对话框中移动控件,代码如下:
CRect rc;
GetDlgItem(IDC_LIST_RESOURCE)->GetWindowRect(&rc);
GetDlgItem(IDC_LIST_RESOURCE)->SetWindowPos(NULL,rc.left,rc.top-30,rc.Width(),rc.Height()+30,SWP_NOZORDER);
没有作用,控件看不见了。
但
GetDlgItem(IDC_LIST_RESOURCE)->SetWindowPos(NULL,rc.left,rc.top,rc.Width(),rc.Height()+30,SWP_NOMOVE|SWP_NOZORDER);
就可以将控件加高.
怎么解决?