Hi Blake, Appreciate your reply.But should admit that althought I understood what u have written,have no idea how to achieve that. Just to make my side clear, I don't want to fill the rectangle with a partiular colour,would just want to draw the 4 lines with bumped effect. In the following sample code,Iam trying to draw a rectangle with redcolour. Would appreciate it if you could show it this code segment how I could achieve the bumped effect as well. void CEx03aView::OnDraw(CDC* pDC) { CPen newPen(PS_SOLID,2,RGB(255,0,0)); CPen *pOldPen = pDC->SelectObject(&newPen); //Top Line pDC->MoveTo(10,100); pDC->LineTo(150,100); //Right Line pDC->MoveTo(150,100); pDC->LineTo(150,250); //Bottom Line pDC->MoveTo(150,250); pDC->LineTo(10,250); //Left Line pDC->MoveTo(10,250); pDC->LineTo(10,100); } Thanks..