• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 471
  • Last Modified:

InvalidateRect and GetUpdateRect

What are all the cases in which the following lines yield b==0 ?
   
    InvalidateRect( hWnd, NULL, TRUE ) ;
    BOOL b = GetUpdateRect ( hWnd, NULL, TRUE ) ;
0
gil_mo
Asked:
gil_mo
  • 2
1 Solution
 
nietodCommented:
1. hwnd is invalid
2. hwnd is for a window that is hidden
3., hwnd is for a window is covered by other windows.
0
 
nietodCommented:
4.  (Possibly, but unlikely to happen) if LockWindowUpdate() was called on  the window.  (If that was done, I'm not sure what would happen in this case, but it seems likely that you'd get 0.)
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now