WM_PAINT after WM_SIZE ?

Is every WM_SIZE message followed by a WM_PAINT message ? If yes, then what will be the coordinates of the clipping rectangle ?
No - Not always -

If you size a window larger you will get WM_SIZE and WM_PAINT.

If you size a window smaller, either in the horizontal or Vertical directions, you will get the WM_SIZE, but whether you get the WM_PAINT paint message depends on
how you set the Window Class style setting when you register the window class

1
2
3
4
    //Step 1: Registering the Window Class
    WNDCLASSEX wc;
    wc.cbSize        = sizeof(WNDCLASSEX);
    wc.style         = CS_HREDRAW|CS_VREDRAW;  //This setting here... 
Thank You.!!
Topic archived. No new replies allowed.