GetClientRect(&rectParent)得到的 top,LEFT肯定都是0,你可以使用:函数原型:BOOL MoveWindow( HWND hWnd, int X, int Y, int nWidth, int nHeight, BOOL bRepaint ); 参数 hWnd指定了窗口的句柄 x指定了CWnd的左边的新位置。 y指定了CWnd的顶部的新位置。 nWidth指定了CWnd的新宽度。 nHeight指定了CWnd的新高度。 把原对话框的bottom设置成Y值就可以了,其他的X,nWidth,nHeight你可以用GetClientRect(&rectParent)获取。...