Waitrud Weber’s blog

things and reminders for memories

3d: windows-make: WindowsAPI: Conformation and remove, which is in the same area.

Conformation and remove, which is in the same area.

 

ValidateRect:
... validates the client area within a rectangle ...

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-validaterect

[in] lpRect
... is NULL, the entire client area is removed.

ValidateRgn:
... validates the client area within a rectangle ...

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-validaterect

 

*Conformation(remain)
The area is going to remain for the next step if we set the area not NULL.

       
  - -  
  - -  
  - -  
  - -  
       

*remove
The area is not going to remain but going to remove whole for the next step if we set the area NULL.

 

Remarks:
Neither the ValidateRect nor ValidateRgn function should be called.

...

The system continues to generate WM_PAINT messages until the current update region is validated.

 

*neither ,,, nor ...
... used for showing that something is not true of two or more people, things, actions, qualities, or ideas.