void YabTabView::Draw(BRect updateRect) { // DrawBox(DrawTabs()); // SetHighColor(223,223,223); // StrokeLine(BPoint(Bounds().left, Bounds().bottom-TabHeight()-2), BPoint(Bounds().right, Bounds().bottom-TabHeight()-2)); DrawBox(TabFrame(fSelection)); DrawTabs(); if (IsFocus() && fFocus != -1) { DrawFocusMark(TabFrame(fFocus), fFocus); // Invalidate(TabFrame(fFocus)); } }
void CRulerBar::DoPaint(CDC* pDC) { CControlBar::DoPaint(pDC); // CControlBar::DoPaint -- draws border if (m_unit.m_nTPU != 0) { pDC->SaveDC(); // offset coordinate system CPoint pointOffset(0,0); RulerToClient(pointOffset); pDC->SetViewportOrg(pointOffset); DrawFace(*pDC); DrawTickMarks(*pDC); DrawTabs(*pDC); m_leftmargin.Draw(*pDC); m_indent.Draw(*pDC); m_rightmargin.Draw(*pDC); pDC->RestoreDC(-1); } // Do not call CControlBar::OnPaint() for painting messages }