19,464
社区成员
发帖
与我相关
我的任务
分享
void CDrawView::InvalObj(CDrawObj *pObj)
{
CRect rect = pObj->m_position;
DocToClient(rect);
if (m_bActive && IsSelected(pObj))
{
rect.left -= 4;
rect.top -= 5;
rect.right += 5;
rect.bottom += 4;
}
//Increases the width and height of CRect.
rect.InflateRect(1, 1); // handles CDrawOleObj objects
//定义区域,重绘该区域
InvalidateRect(rect, FALSE);
}