Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am using a Form(CFormview) for draw purpose. How to use OnEraseBkgnd function for FormView?

additional information by OP copied from comment below

I have inserted a Form (CFormView) in MFC Mainframe. In that form, when i am going to repaint, at the time flickering happen. For that i will have to use EraseBackGround (in false mode) function. But in the form's class wizard WM_ERASEBKGND is not available. So how can i include EraseBackGround function in that form?
Posted
Updated 27-Mar-13 21:39pm
v2
Comments
Nelek 27-Mar-13 3:51am    
What do you mean with "how to use"? What do you want to make?
Rajeshkumar Ramasamy 27-Mar-13 5:10am    
I have inserted a Form (CFormView) in MFC Mainframe. In that form, when i am going to repaint, at the time flickering happen. For that i will have to use EraseBackGround (in false mode) function. But in the form's class wizard WM_ERASEBKGND is not available. So how can i include EraseBackGround function in that form?
Nelek 28-Mar-13 3:41am    
Do you have Invalidate() and RedrawWindow() or something similar? That should cover your need.. but the flickering can be due to another thing.

I would suggest you to use the "improve question" widget and add a snippet of the code giving you problems. That way will be easier for us to spot the error

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900