Solved

Always on top

Posted on 2000-04-11
5
210 Views
Last Modified: 2013-11-20
I have an SDI application.  I need to make the application stay "always on top".  I can do this with dialogs in an application, or the child windows of a MDI app.  This seems to be very similar to the Task Manager, always on top option.

Thanks in advance.
kev
0
Comment
Question by:SweetLeaf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 5

Accepted Solution

by:
Wyn earned 100 total points
ID: 2704370
Call SetWindowPos() on which window you wanna it to be topmost with wndTopMost  as the first parameter...

Free to ask...
Regards
W.Yinan
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2704380
Or you can creat it by specifying WM_EX_TOPMOST attr...
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2704387
For the later,you'd use CreateEx()...
0
 

Expert Comment

by:wytze
ID: 2704446
m_pMainWnd->SetWindowPosition(HWND_TOPMOST,X,Y,width,heigth,Flags);

m_pMainWnd is global variable in every SDI application.
0
 

Author Comment

by:SweetLeaf
ID: 2704503
This seems to work.

Thanks,
kev
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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 this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

628 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