对话框实现伸缩窗口功能问题??
static CRect RectLarge;
static CRect RectSmall;
if (RectLarge.IsRectNull())
{
CRect rectSeparator;
GetWindowRect(&RectLarge);
GetDlgItem(IDC_SEPARATOR)->GetWindowRect(&rectSeparator); //分割线标志
RectSmall.left = rectSeparator.left;
RectSmall.top = RectLarge.top;
RectSmall.right = RectLarge.right;
RectSmall.bottom = RectLarge.bottom;
}
SetWindowPos(NULL,RectSmall.left,0,RectSmall.Width(),RectSmall.Height(),SWP_NOMOVE|SWP_NOZORDER);
///分割线是竖线,即实现隐藏左半边部分的对话框,我用SetWindowPos函数,设置坐标X,为RectSmall.Left为
什么没有起作用???
谢谢