Solved

InvalidateRect and GetUpdateRect

Posted on 1999-01-29
2
428 Views
Last Modified: 2013-12-03
What are all the cases in which the following lines yield b==0 ?
   
    InvalidateRect( hWnd, NULL, TRUE ) ;
    BOOL b = GetUpdateRect ( hWnd, NULL, TRUE ) ;
0
Comment
Question by:gil_mo
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 70 total points
ID: 1419429
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
 
LVL 22

Expert Comment

by:nietod
ID: 1419430
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question