Solved

Document view child windows.

Posted on 1997-11-15
3
226 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
[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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

728 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