Solved

InvalidateRect and GetUpdateRect

Posted on 1999-01-29
2
444 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…

737 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