Solved

C++ Windows Overlapping....

Posted on 2003-11-17
7
245 Views
Last Modified: 2010-04-17
How can I tell whether or not some other random window is blocking part of mine?  This is needed so I can redraw my window when it, or part of it, is again visible.  You know what I am trying to say....
0
Comment
Question by:jarnjar
  • 2
7 Comments
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 9769220
This depends upon the operating system and window server you are programming to.
For instance, in my preferred development environments (NeXTstep, OpenStep, Mac OS X)
you would register a delegate of the Window that implements the windowDidExpose: and
windowDidResize: methods.

0
 

Author Comment

by:jarnjar
ID: 9769367
This is a windows program.
0
 
LVL 22

Accepted Solution

by:
cookre earned 125 total points
ID: 9770521
Uh, in MS Windows, after you've created your window and painted it, you'll get a WM_PAINT message whenever someone has stepped on you thereby requiring you to re-paint all or some portion of the window.
0
 
LVL 22

Expert Comment

by:cookre
ID: 9889083
Did that work for you?
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

743 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

15 Experts available now in Live!

Get 1:1 Help Now