Thanks for your help, it's working!
But I'm still confused about drawing with fixed value(blue rectangle) is working, and the dynamic value not(red rectangle)?
不二 wrote: ↑Mon Mar 30, 2020 11:45 amBut I'm still confused about drawing with fixed value(blue rectangle) is working, and the dynamic value not(red rectangle)?
When you increase the window size, the OS will only generate update rectangles for the small, new parts that become visible, not the whole window.
不二 wrote: ↑Mon Mar 30, 2020 11:45 amBut I'm still confused about drawing with fixed value(blue rectangle) is working, and the dynamic value not(red rectangle)?
When you increase the window size, the OS will only generate update rectangles for the small, new parts that become visible, not the whole window.
some small, new parts rectangles will be repainted after window size changed, but I think the two DrawRectangle() methods should have the same result, but that's not.
DrawRectangle(rc) -- with client rect, dynamic value, not fixed.
DrawRectangle(100, 100, 500, 400) -- with fixed value.