Solved

window always in front?!

Posted on 1998-12-07
1
199 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

771 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

12 Experts available now in Live!

Get 1:1 Help Now