::GetWindowRect(hwnd1,&rect1);
ScreenToClient (&rect1);
dcMem.FillSolidRect(0,0,rect1.Width(),rect1.Height(),RGB(255,0,0));//
::GetWindowRect(hwnd1,&rect1);
ScreenToClient (&rect1);
dcMem.FillSolidRect(0,0,rect1.Width(),rect1.Height(),RGB(255,0,0));//