Solved

C++ Windows Overlapping....

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
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…

832 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