473,322 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

MDI BottomMost Child Window

Hi,

How can I have an MDI Child Window in such a way that all other MDI Child
Windows appear OVER it.
Its like a background window which will never overlap another MDI child
window.
Is this achieveable, this almost the BottomMost behaviour of an MDI Child
Window?
Is it possible to have this behaviour for multiple windows?

Please feel free to ask if there is any confusion.
Thanx
rawCoder
Oct 25 '05 #1
1 1537
rawCoder,

You can make a call to the SetWindowPos API method through the P/Invoke
layer. Once you do that, you can set the hwndInsertAfter parameter to the
HWND_BOTTOM value to indicate that the window should be the bottom-most
window.

You would then make this call when your window is activated (because
activating it brings it to the top). You can do this by overriding the
WndProc method and handling the WM_ACTIVATED event. You need to do this
instead of handling the Activated event because you need to be able to say
you processed the message (instead of letting the default message bring the
window to the front).

The thing is, you can't have more than one window be the bottom window,
so you will have to decide which windows should be on top of each other out
of all of the bottom-most windows.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"rawCoder" <ra******@hotmail.com> wrote in message
news:uu**************@tk2msftngp13.phx.gbl...
Hi,

How can I have an MDI Child Window in such a way that all other MDI Child
Windows appear OVER it.
Its like a background window which will never overlap another MDI child
window.
Is this achieveable, this almost the BottomMost behaviour of an MDI Child
Window?
Is it possible to have this behaviour for multiple windows?

Please feel free to ask if there is any confusion.
Thanx
rawCoder

Oct 25 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ian.michel | last post by:
I have a parent window that pushes a new window object onto an Array with the following code : OpenChild() { //totalNumWindowsCreated is global totalNumWindowsCreated =...
2
by: Bostonasian | last post by:
I am trying to append options to dropdown in parent window from option items in child window. In parent window, I have following code: <script language="javascript"> function...
2
by: Jon | last post by:
I am writing an MDI app that uses a document manager class to keep track of opened child windows. I want the user to be able to close a child window, but then re-open the window from the "Window"...
1
by: rawCoder | last post by:
Hi, How can I have an MDI Child Window in such a way that all other MDI Child Windows appear OVER it. Its like a background window which will never overlap another MDI child window. Is this...
4
by: Bonj | last post by:
Further to my last post, I have managed to get a child window to display. But its messages are routed to the same WNDPROC that the main window's messages are routed to - what is the way of...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
4
by: Steve Barnett | last post by:
I've created a simple MDI application and have designated the Window menu to keep track of the mdi children. When I first load an mdi child, it's caption consists of "File: no file loaded" and this...
4
by: Buddha | last post by:
Hello, I posted this on two forums, without too much help .. and I am kinda stuck in this. I need to refresh the parent page from the second child window which is opened by the first child and...
1
Frinavale
by: Frinavale | last post by:
I'm having a problem that I cannot seem to debug. FireFox's FireBug extension is indicating that there is an error being thrown, but I have no idea which window caused the error to be thrown. I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.