void CMyView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
CRect rect;
m_List1.GetWindowRect(&rect);//运行到这产生异常
rect.right=rect.right*x/1024;
rect.bottom=rect.bottom*y/768;
m_List1.MoveWindow(&rect);