Why my process enter the OnEraseBkgnd after OnPaint?

  • Thread starter Thread starter earlyBirdHappyFly
  • Start date Start date
E

earlyBirdHappyFly

Guest
My project is based on MFC.

I set some breakpoints to debug my project.I found that my app enter a concrete Class's "OnPaint" first and then enter the "OnEraseBkgnd" when update it. The Class is a subclass drived from CView.

Is it means my view receive the "WM_PAINT" before "WM_ERASEBKGND" ?

Isn't that strange?

I am new here and hope for receiving any advice sincerely.

Hoping for your reply.

Continue reading...
 
Back
Top