Solved

window always in front?!

Posted on 1998-12-07
1
210 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

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

914 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

15 Experts available now in Live!

Get 1:1 Help Now