Home > Back-end >  Why couldn't erase the background, don't understand
Why couldn't erase the background, don't understand

Time:10-02


Function is the color of the client area constantly changing back and forth, but InvalidateRect set to erase the background, after the program shows a color white have no reaction, change the size of the client area compulsory WMPAINT can change color; But set to not erase is normal operation, this is why, I feel in addition to the difference is not big ah, erase after release WMPAINR message to paint the client area,

CodePudding user response:

I generally is provided interfaces directly with the control itself, do not use the API
  • Related