Solved

InvalidateRect and GetUpdateRect

Posted on 1999-01-29
2
411 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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now