void CLogGraph::OnPaint() { CPaintDC paintDc(this); CDC& dc = FBufferInit(paintDc); dc.IntersectClipRect(&m_rectWnd); // ensure draw only in client area dc.SetWindowOrg(0, 0); dc.SetViewportOrg(0, 0); dc.SetMapMode(MM_ANISOTROPIC); dc.SetWindowExt(1, 1); dc.SetViewportExt(1, 1); // dc.FillSolidRect(&m_rectGraph, m_crBack); XTPPaintManager()->GradientFill(&dc, m_rectGraph, RGB(60,0,0), RGB(0,0,60), FALSE); dc.SetBkMode(TRANSPARENT); // 그리기 시작 if (m_bLoad){ drawHeader(dc); drawGraph(dc); } FBufferRelease(paintDc); if (m_bStylesModified){ // reset style if resized GetParent()->ModifyStyle(WS_CLIPCHILDREN, 0); ModifyStyle(WS_CLIPSIBLINGS, 0); m_bStylesModified = false; } m_nLastCursorPos = -1; }
void SjVisImpl::OnPaint(wxPaintEvent& e) { wxPaintDC paintDc(m_thisWindow); paintDc.SetBrush(*wxBLACK_BRUSH); paintDc.SetPen(*wxTRANSPARENT_PEN); paintDc.DrawRectangle(m_thisWindow->GetClientSize()); }
void SjVidoutWindow::OnPaint(wxPaintEvent& e) { wxPaintDC paintDc(this); paintDc.SetBrush( #ifdef VIDEO_DEBUG_VIEW *wxLIGHT_GREY_BRUSH #else *wxBLACK_BRUSH #endif ); paintDc.SetPen(*wxTRANSPARENT_PEN); paintDc.DrawRectangle(GetClientSize()); }