15,979
社区成员
发帖
与我相关
我的任务
分享
CRect rcWindow;
GetWindowRect(&rcWindow);
rcWindow.OffsetRect(-rcWindow.left, -rcWindow.top);
// TRACE("顶%d--底%d--左%d--右%d\n",rcWindow.top,rcWindow.bottom,rcWindow.left,rcWindow.right);
CDC* pDC = GetWindowDC();
if(!pDC) return;
rcWindow.top = rcWindow.bottom -2;
pDC-> FillSolidRect(rcWindow,RGB(255,0,0));
ReleaseDC(pDC);