VC区域重绘判断原点

来源:互联网 发布:淘宝数据包制作教程 编辑:程序博客网 时间:2024/05/18 01:41
区域重绘
 RECT stRect; 
 pThis->m_ceItemInfo.GetWindowRect(&stRect); 
 pThis->m_ceItemInfo.GetParent()->ScreenToClient(&stRect); 
 pThis->m_ceItemInfo.GetParent()->InvalidateRect(&stRect, true); 
判断圆点
 CPoint point;
  GetCursorPos(&point);
  CRect rect;
  GetDlgItem(IDC_EDIT1)->GetWindowRect(&rect);
  if(rect.PtInRect(point))
   return TRUE;
0 0