Solved

C++ Windows Overlapping....

Posted on 2003-11-17
7
269 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
This is about my first experience with programming Arduino.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

828 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