Clear CView 
Author Message
 Clear CView

Hi folks,

How can I clear the screen without having to set all my values to nothing ?
I mean to clear the OnDraw.
Using a SDI app.

Thanks,
Jocke



Tue, 22 Jul 2003 17:17:08 GMT  
 Clear CView

Quote:

> Hi folks,

> How can I clear the screen without having to set all my values to nothing ?
> I mean to clear the OnDraw.
> Using a SDI app.

> Thanks,
> Jocke

How about something like

CCC::OnDraw(CDC* pDC)
{
 if (m_bClear)
   pDC->FillSolidRect(...);
 else
 {
   .. drawing code
 }

Quote:
}

--
Scott McPhillips [VC++ MVP]


Wed, 23 Jul 2003 09:16:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Disabling CView's window clearing

2. CView with a CView child help

3. Multiple CViews within one CView

4. A CView within a CView..possible?

5. CView::OnDraw vs CView::OnPaint

6. Add CView within CView

7. Updating CView for a Cview attached CToolBar

8. CView talk to another CView???

9. How can i update a rectangle or a text in a CView without clear and redraw the view

10. Q: Can you nest a CView within another CView?

11. std::list.clear() throws exceptions in .NET 2003.

12. TextBox.Clear and IP address control

 

 
Powered by phpBB® Forum Software