菜鸟送分:CEdit
susdj 2001-04-20 10:50:00 我继承了CEdit,然后用一个函数,想在里面绘图,但是没出现,为什么?
CClientDC pDC(this);
CRect rect;
this->GetClientRect(&rect);
CPen GridLinePen(0,2,RGB(0,255,255)),*OldPen;
this->GetClientRect(&rect);
OldPen=pDC.SelectObject(&GridLinePen);
oldp=pDC.MoveTo(rect.left,rect.top+10);
pDC.LineTo(rect.right,rect.top+10);