Solved

window always in front?!

Posted on 1998-12-07
1
228 Views
Last Modified: 2013-11-20
hi,
I have a second framewnd within my app.
Now I  want to have the second wnd ALWAYS IN FRONT OF THE
OTHER WND ( mainframe ).
I tried the WS_EX_TOPMOST style but with that flag the
window is in front of all windows.
dib
0
Comment
Question by:nil_dib
1 Comment
 
LVL 2

Accepted Solution

by:
jstolan earned 100 total points
ID: 1325838
Whenever your mainframe gets the focus use SetWindowPos to set it in the z-order immediately behind your second Wnd

SetWindowPos(&CWndSecondFrame,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fix34  challenge 9 141
Unix Command -- Challenging  question 7 95
Annoying "thing" blocks my view 4 115
Message not shown 5 67
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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