Solved

InvalidateRect and GetUpdateRect

Posted on 1999-01-29
2
452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

622 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