Solved

Document view child windows.

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

705 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

20 Experts available now in Live!

Get 1:1 Help Now