关于SetWindowPos的奇怪问题,来看一看
::SetWindowPos(GetDlgItem(IDC_LIST1)->GetSafeHwnd(), wndTop, rectList.left+5, rectList.top+64,rectList.Width()-9, rectList.Height()-69, SWP_NOMOVE);
GetDlgItem(IDC_LIST1)->SetWindowPos( &wndTop, rectList.left+5, rectList.top+64,rectList.Width()-9, rectList.Height()-69, SWP_NOMOVE);
这两条的运行结果怎么不一样,上面这条显示正常,下面这条一运行就告诉你“某某内存不能读”,MFC不是这样用的吗?