Solved

Document view child windows.

Posted on 1997-11-15
3
198 Views
Last Modified: 2010-04-10
Given an executable with multiple document views, sometimes a document creates a child window, but the child window always stays on top of the document.  What do I need to do to get the document on top of the child?

(When I say "on top" I am refering to the window ordering sequence.)
0
Comment
Question by:Ashurbanipal
3 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1173234
I'm not sure what you mean by the document because you can never see the document. All the windows are views in the document/view model except for the main application (CMainFrame). But if you want to change the z-order of sibling windows , you can do so by using SetWindowPos(). However, note that you can only do so for sibling windows. A child window will always appear above its parent and this behavior cannot be changed.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1173235
I'm gonna make the following guesses about what you said.

I think by a document window you mean a MDI child window, that is a window that can be resized and moved about inside of the main application window.  The "child window" would therefore be a window that is created by the MDI child window, but is also resizable and moveable.  

Assuming I'm right so far.  The problem is that the "child window" was declared to be a child of the MDI child window.  It should probably be declared a child of the application window.
0
 

Author Comment

by:Ashurbanipal
ID: 1173236
Thanks nietod.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

932 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

12 Experts available now in Live!

Get 1:1 Help Now